org.wcb.autohome.util
Class AliceX10AddressListener

java.lang.Object
  extended byorg.wcb.autohome.util.AliceX10AddressListener
All Implemented Interfaces:
com.jpeterson.x10.event.AddressListener, java.util.EventListener, com.jpeterson.x10.event.FunctionListener

public class AliceX10AddressListener
extends java.lang.Object
implements com.jpeterson.x10.event.AddressListener, com.jpeterson.x10.event.FunctionListener

AliceX10AddressListener.java Created on December 12, 2003, 7:59 PM

Author:
wbogaardt Project: Home Automation Interface Filename: $Id: AliceX10AddressListener.java,v 1.9 2004/07/22 03:17:55 wbogaardt Exp $ Abstract: Listens and monitors CM11A device for events occuring over power line and logs the results. $Log: AliceX10AddressListener.java,v $ Revision 1.9 2004/07/22 03:17:55 wbogaardt removed deprecated methods Revision 1.8 2004/02/02 23:41:31 wbogaardt refactored email so that properties are maintained in bean object and added allowing username and password authentication for email servers that require it. Revision 1.7 2004/01/21 05:29:43 wbogaardt fixed bug saving file format and added disable monitoring Revision 1.6 2004/01/20 19:36:00 wbogaardt fixed adding new objects to check for redundancy Revision 1.5 2004/01/20 05:31:05 wbogaardt added speech event for runing Revision 1.4 2004/01/20 00:20:58 wbogaardt allow email service to send status code back if email succeds or fails Revision 1.3 2004/01/19 22:35:38 wbogaardt added fixes to runing events and emails so they work and added a testing of a monitored event through the table popup on a right mouse click. Revision 1.2 2004/01/17 08:15:46 wbogaardt Have an initial working monitoring frame that actually shows the date and time an event takes place Revision 1.1 2003/12/13 04:30:59 wbogaardt new CM11A monitoring listeners.

Constructor Summary
AliceX10AddressListener(MonitorTableModel mModel)
          Creates a new instance of AliceX10AddressListener
 
Method Summary
 void address(com.jpeterson.x10.event.AddressEvent addressEvent)
           
 void functionAllLightsOff(com.jpeterson.x10.event.FunctionEvent functionEvent)
          This function detects all lights off function on the House.
 void functionAllLightsOn(com.jpeterson.x10.event.FunctionEvent functionEvent)
          This function detects all lights on function on the House.
 void functionAllUnitsOff(com.jpeterson.x10.event.FunctionEvent functionEvent)
          This function detects all units off function on the House.
 void functionBright(com.jpeterson.x10.event.FunctionEvent functionEvent)
          This function detects a Brighten function on the House.
 void functionDim(com.jpeterson.x10.event.FunctionEvent functionEvent)
          This function detects a dim function on the House.
 void functionHailAcknowledge(com.jpeterson.x10.event.FunctionEvent functionEvent)
           
 void functionHailRequest(com.jpeterson.x10.event.FunctionEvent functionEvent)
           
 void functionOff(com.jpeterson.x10.event.FunctionEvent functionEvent)
          This function detects an off function on the House.
 void functionOn(com.jpeterson.x10.event.FunctionEvent functionEvent)
          This function detects an on function on the House.
 void functionPresetDim1(com.jpeterson.x10.event.FunctionEvent functionEvent)
           
 void functionPresetDim2(com.jpeterson.x10.event.FunctionEvent functionEvent)
           
 void functionStatusOff(com.jpeterson.x10.event.FunctionEvent functionEvent)
           
 void functionStatusOn(com.jpeterson.x10.event.FunctionEvent functionEvent)
           
 void functionStatusRequest(com.jpeterson.x10.event.FunctionEvent functionEvent)
           
 void runAction(IX10MonitorEvent event)
          Run the event from the detected item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliceX10AddressListener

public AliceX10AddressListener(MonitorTableModel mModel)
Creates a new instance of AliceX10AddressListener

Method Detail

address

public void address(com.jpeterson.x10.event.AddressEvent addressEvent)
Specified by:
address in interface com.jpeterson.x10.event.AddressListener

runAction

public void runAction(IX10MonitorEvent event)
Run the event from the detected item.

Parameters:
event - The main event that the action was detected.

functionAllLightsOff

public void functionAllLightsOff(com.jpeterson.x10.event.FunctionEvent functionEvent)
This function detects all lights off function on the House. So this listener must first get the device code information from the AddressListener, which should fire first. Then this should fire as the next event to get the status type. The address listener gives the house and device id.

Specified by:
functionAllLightsOff in interface com.jpeterson.x10.event.FunctionListener
Parameters:
functionEvent - The function or action that was fired on a house code.

functionAllLightsOn

public void functionAllLightsOn(com.jpeterson.x10.event.FunctionEvent functionEvent)
This function detects all lights on function on the House. So this listener must first get the device code information from the AddressListener, which should fire first. Then this should fire as the next event to get the status type. The address listener gives the house and device id.

Specified by:
functionAllLightsOn in interface com.jpeterson.x10.event.FunctionListener
Parameters:
functionEvent - The function or action that was fired on a house code.

functionAllUnitsOff

public void functionAllUnitsOff(com.jpeterson.x10.event.FunctionEvent functionEvent)
This function detects all units off function on the House. So this listener must first get the device code information from the AddressListener, which should fire first. Then this should fire as the next event to get the status type. The address listener gives the house and device id.

Specified by:
functionAllUnitsOff in interface com.jpeterson.x10.event.FunctionListener
Parameters:
functionEvent - The function or action that was fired on a house code.

functionBright

public void functionBright(com.jpeterson.x10.event.FunctionEvent functionEvent)
This function detects a Brighten function on the House. So this listener must first get the device code information from the AddressListener, which should fire first. Then this should fire as the next event to get the status type. The address listener gives the house and device id.

Specified by:
functionBright in interface com.jpeterson.x10.event.FunctionListener
Parameters:
functionEvent - The function or action that was fired on a house code.

functionDim

public void functionDim(com.jpeterson.x10.event.FunctionEvent functionEvent)
This function detects a dim function on the House. So this listener must first get the device code information from the AddressListener, which should fire first. Then this should fire as the next event to get the status type. The address listener gives the house and device id.

Specified by:
functionDim in interface com.jpeterson.x10.event.FunctionListener
Parameters:
functionEvent - The function or action that was fired on a house code.

functionHailAcknowledge

public void functionHailAcknowledge(com.jpeterson.x10.event.FunctionEvent functionEvent)
Specified by:
functionHailAcknowledge in interface com.jpeterson.x10.event.FunctionListener

functionHailRequest

public void functionHailRequest(com.jpeterson.x10.event.FunctionEvent functionEvent)
Specified by:
functionHailRequest in interface com.jpeterson.x10.event.FunctionListener

functionOff

public void functionOff(com.jpeterson.x10.event.FunctionEvent functionEvent)
This function detects an off function on the House. So this listener must first get the device code information from the AddressListener, which should fire first. Then this should fire as the next event to get the status type. The address listener gives the house and device id.

Specified by:
functionOff in interface com.jpeterson.x10.event.FunctionListener
Parameters:
functionEvent - The function or action that was fired on a house code.

functionOn

public void functionOn(com.jpeterson.x10.event.FunctionEvent functionEvent)
This function detects an on function on the House. So this listener must first get the device code information from the AddressListener, which should fire first. Then this should fire as the next event to get the status type. The address listener gives the house and device id.

Specified by:
functionOn in interface com.jpeterson.x10.event.FunctionListener
Parameters:
functionEvent - The function or action that was fired on a house code.

functionPresetDim1

public void functionPresetDim1(com.jpeterson.x10.event.FunctionEvent functionEvent)
Specified by:
functionPresetDim1 in interface com.jpeterson.x10.event.FunctionListener

functionPresetDim2

public void functionPresetDim2(com.jpeterson.x10.event.FunctionEvent functionEvent)
Specified by:
functionPresetDim2 in interface com.jpeterson.x10.event.FunctionListener

functionStatusOff

public void functionStatusOff(com.jpeterson.x10.event.FunctionEvent functionEvent)
Specified by:
functionStatusOff in interface com.jpeterson.x10.event.FunctionListener

functionStatusOn

public void functionStatusOn(com.jpeterson.x10.event.FunctionEvent functionEvent)
Specified by:
functionStatusOn in interface com.jpeterson.x10.event.FunctionListener

functionStatusRequest

public void functionStatusRequest(com.jpeterson.x10.event.FunctionEvent functionEvent)
Specified by:
functionStatusRequest in interface com.jpeterson.x10.event.FunctionListener


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