org.wcb.autohome
Class AutoHomeDaemonSession

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

public class AutoHomeDaemonSession
extends AutoHomeSession
implements X10DeviceConstants


Field Summary
 
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
 IDeviceRemote getDeviceFactory()
          Deprecated.  
static AutoHomeDaemonSession getInstance()
          returns a singleton value of the AutoHomeDaemonSession
 java.lang.String getServletPath()
          For servlets web based applications need to get reference to servlet context;
 void loadLastSettings(java.lang.String sFilename, java.lang.String sDirectory)
          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 saveFile(java.lang.String sFullfilename)
          Saves the file path and name and stores it in the jhome.prop file then it calls parent class to save the actual .x10 serialized file.
 void setServletPath(java.lang.String sPath)
          For servlets web application need to set reference to servlet context;
 
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, 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
 

Method Detail

getInstance

public static AutoHomeDaemonSession getInstance()
returns a singleton value of the AutoHomeDaemonSession

Returns:
AutoHomeDaemonSession instance

getDeviceFactory

public IDeviceRemote getDeviceFactory()
Deprecated.  

Used by the command line application, but this will be deprecated because of web interface will be an improvement.

Returns:
Interface of file system.

loadLastSettings

public void loadLastSettings(java.lang.String sFilename,
                             java.lang.String sDirectory)
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.

Parameters:
sFilename - file name to load can be null
sDirectory - directory path to load HAConfig.ini and jhome.prop files.

saveFile

public void saveFile(java.lang.String sFullfilename)
              throws HomeException
Saves the file path and name and stores it in the jhome.prop file then it calls parent class to save the actual .x10 serialized file.

Overrides:
saveFile in class AutoHomeSession
Parameters:
sFullfilename - full path and file name of the saved file.
Throws:
HomeException

setServletPath

public void setServletPath(java.lang.String sPath)
For servlets web application need to set reference to servlet context;

Parameters:
sPath - Servlet context path.

getServletPath

public java.lang.String getServletPath()
For servlets web based applications need to get reference to servlet context;

Returns:
Servlet context path.

printMessage

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

Parameters:
messages - prints a system.out or speaks the text.


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