org.wcb.autohome
Class AutoHomeAdminSession

java.lang.Object
  extended byorg.wcb.autohome.AutoHomeSession
      extended byorg.wcb.autohome.AutoHomeAdminSession
All Implemented Interfaces:
X10DeviceConstants

public class AutoHomeAdminSession
extends AutoHomeSession

Project: Home Automation Interface Filename: $Id: AutoHomeAdminSession.java,v 1.27 2004/06/09 18:52:34 wbogaardt Exp $ Abstract: Centralized backend for various components to send events to Serial port output. Also used to handle connection between manipulating files information.

Version:
1.48 $Log: AutoHomeAdminSession.java,v $ Revision 1.27 2004/06/09 18:52:34 wbogaardt changed enum to enumr to avoid java keyword issue Revision 1.26 2004/02/08 03:22:40 wbogaardt fixed a number of bugs with new startup of swing application Revision 1.25 2004/02/03 21:02:24 wbogaardt moved DeviceFactory away from rmi creation and simplified interface between gateway Revision 1.24 2004/02/03 00:35:06 wbogaardt reogranized files so that serial port settings are maintained in a bean to interface with config file Revision 1.23 2004/01/18 00:48:31 wbogaardt refactored out unnecessary code and now have a functional initial design of monitoring panel Revision 1.22 2004/01/16 00:53:34 wbogaardt Fixed a very obscure bug with the Macro Panel that it didn't added new x10 devices to the drop down of available x10 device for the macro. Modified Macro triggers to change the events to integer verses strings cleaner this way. Revision 1.21 2004/01/02 21:02:51 wbogaardt removed excessive logging statements, and consolidated some variables Revision 1.20 2003/12/31 01:09:37 wbogaardt removed dead string reference to jhome.prop Revision 1.19 2003/12/31 00:51:47 wbogaardt refactored so that look and feel is read from HASConfig.ini Revision 1.18 2003/12/31 00:08:08 wbogaardt fixed bug with setting look and feel and having it persist for user next time open Revision 1.17 2003/12/24 20:24:17 wbogaardt Fixed display of console message on start up Revision 1.16 2003/12/13 05:36:50 wbogaardt fixed javadoc comments.
Author:
wbogaardt

Field Summary
static javax.swing.ImageIcon APPLIANCEICON
           
static javax.swing.ImageIcon APPLIANCEICON_OFF
           
static javax.swing.ImageIcon CAUTIONICON
           
static javax.swing.ImageIcon CLOCKICON
           
static javax.swing.ImageIcon DAYOFF
           
static javax.swing.ImageIcon DAYON
           
static javax.swing.ImageIcon DELETE_ROW_ICON
           
static javax.swing.ImageIcon INTERFACE_OFF
           
static javax.swing.ImageIcon INTERFACE_ON
           
static javax.swing.ImageIcon LIGHTICON
           
static javax.swing.ImageIcon LIGHTICON_OFF
           
static javax.swing.ImageIcon SUNRISE
           
static javax.swing.ImageIcon SUNSET
           
 
Fields inherited from class org.wcb.autohome.AutoHomeSession
CURRENT_FILENAME, deviceFactory, gateway
 
Fields inherited from interface org.wcb.autohome.interfaces.X10DeviceConstants
APPLIANCE_MODULE_OFF, APPLIANCE_MODULE_ON, BAUD, BAUD_RATE_ARRAY, BRIGHT_ACTION, BROWSER, CM11A_TRANSMITTER, CM17A_TRANSMITTER, CONNECT_ON_START, COUNTRY, DATA_BIT, DATA_BITS_ARRAY, DEVICE_ARRAY, DIM_ACTION, EMAIL_AUTHORIZE, EMAIL_FREQUENCY, EMAIL_FROM, EMAIL_PASSWORD, EMAIL_SMTP, EMAIL_TO, EMAIL_USERNAME, FALSE, HOUSE_CODES_ARRAY, INTERFACE_TYPE, LAMP_MODULE_OFF, LAMP_MODULE_ON, LANGUAGE, LAST_FILE, LOCALHOST, LOOK_AND_FEEL, MAC, METAL, MOTIF, OFF_ACTION, ON_ACTION, PARITY, PARITY_ARRAY, RECOVER_CM11A, RMI_HOST, SEPARATOR, SERIAL_PORT, SPEECH_ENGINE, STOP_BIT, STOP_BITS_ARRAY, TEST_TRANSMITTER, TIMER_EVENT, TRIGGER_EVENT, TRUE, USER_HOME, WINDOWS
 
Method Summary
 UIDefaultsLoader getAppProperties()
          accessor to get the current application setting hashtable via the Property loader object to handle additonal features such as file saving
 javax.swing.JComboBox getAvailableMacroEvents(javax.swing.JComboBox comboBox)
          This method takes a combo box object and inserts simply names of macros into its drop down list.
static AutoHomeAdminSession getInstance()
          This provides a single static class for the entire application.
static AutoHomeAdminSession getInstance(java.lang.String dirname)
           
 MessageInterface getMessageInterface()
          returns a reference to the MessageInterface provided to this class.
 void initiateGUI()
           
 void loadLastSettings()
          Loads the last settings from the file properties file loader.
 void printMessage(java.lang.String messages)
          simple method to print messages to gui or console
 void setAppProperties(java.util.Properties app)
           
 void setMessageInterface(MessageInterface msg)
           
 javax.swing.JComboBox setRenderedModules(javax.swing.JComboBox comp)
          Takes in a JComboBox and adds items to its list as an Item object.
 
Methods inherited from class org.wcb.autohome.AutoHomeSession
buildTriggerMacros, clearMacroEventsFromCM11A, clearTimerMacrosFromCM11A, closeSerialPort, connectPortToDevice, connectSerialOnStartup, connectToSerialPortOnStartup, createNewFile, deleteMacro, disableMonitorCM11A, enableSpeechEngine, getAvailablePorts, getCM11ABatteryUsage, getCM11ADate, getCountry, getEmailInformation, getI18n, getLookAndFeel, getSerialPort, getX10GatewayType, isAutoRecoverCM11A, isEventDaemonRunning, isSpeechEnabled, isX10GatwayConnected, lampIntensity, loadAllAliceEvents, loadAllAliceMonitors, loadAllCM11AMacros, loadAllX10Devices, loadCM11AMacroTriggers, loadServices, loadStandAloneService, loadX10File, monitorCM11A, recoverCM11A, runEventsDaemon, saveAllAliceEvents, saveAllAliceMonitors, saveAllCM11AMacros, saveAllX10Devices, saveCM11AMacroTriggers, saveFile, saveMacro, saveServerFile, sendCommandToSection, sendCommandToX10Module, setCM11AClock, setCountry, setEmailInformation, setInterfaceType, setLookAndFeel, setMonitorModel, setSerialPort, showMessage, stopEventsDaemon, updateCM11AStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIGHTICON

public static javax.swing.ImageIcon LIGHTICON

LIGHTICON_OFF

public static javax.swing.ImageIcon LIGHTICON_OFF

APPLIANCEICON

public static javax.swing.ImageIcon APPLIANCEICON

APPLIANCEICON_OFF

public static javax.swing.ImageIcon APPLIANCEICON_OFF

DAYON

public static javax.swing.ImageIcon DAYON

DAYOFF

public static javax.swing.ImageIcon DAYOFF

INTERFACE_ON

public static javax.swing.ImageIcon INTERFACE_ON

INTERFACE_OFF

public static javax.swing.ImageIcon INTERFACE_OFF

SUNRISE

public static javax.swing.ImageIcon SUNRISE

SUNSET

public static javax.swing.ImageIcon SUNSET

CLOCKICON

public static javax.swing.ImageIcon CLOCKICON

CAUTIONICON

public static javax.swing.ImageIcon CAUTIONICON

DELETE_ROW_ICON

public static javax.swing.ImageIcon DELETE_ROW_ICON
Method Detail

getInstance

public static AutoHomeAdminSession getInstance()
This provides a single static class for the entire application.


getInstance

public static AutoHomeAdminSession getInstance(java.lang.String dirname)

initiateGUI

public void initiateGUI()

setMessageInterface

public void setMessageInterface(MessageInterface msg)

printMessage

public void printMessage(java.lang.String messages)
simple method to print messages to gui or console


getMessageInterface

public MessageInterface getMessageInterface()
returns a reference to the MessageInterface provided to this class. (used by MacroSequencePanel)


getAppProperties

public UIDefaultsLoader getAppProperties()
accessor to get the current application setting hashtable via the Property loader object to handle additonal features such as file saving


setAppProperties

public void setAppProperties(java.util.Properties app)

loadLastSettings

public void loadLastSettings()
Loads the last settings from the file properties file loader. These settings are the file name, serial port, baud, bit, and X10 device type information.


setRenderedModules

public javax.swing.JComboBox setRenderedModules(javax.swing.JComboBox comp)
Takes in a JComboBox and adds items to its list as an Item object. It then returns this same component to the calling object with the newly filled list of items.

Parameters:
comp - - Swing component that needs a list of items added to it.
Returns:
JComboBox - Swing component with the new list of items.

getAvailableMacroEvents

public javax.swing.JComboBox getAvailableMacroEvents(javax.swing.JComboBox comboBox)
This method takes a combo box object and inserts simply names of macros into its drop down list. This calls the loadAllCM11AMacros() method which currently does a search for keys of Macroname.delay=



Copyright © 1999-2004 Walter Bogaardt. All Rights Reserved.