sophware.home.insteon
Class InsteonEventHandler

java.lang.Object
  extended by sophware.home.io.HomeEventHandler
      extended by sophware.home.insteon.InsteonEventHandler

public class InsteonEventHandler
extends HomeEventHandler

The InsteonEventHandler is the default event handler for InsteonHomeEvents

Version:
1.0, 03/19/07
Author:
Russell Soph

Constructor Summary
InsteonEventHandler()
           
 
Method Summary
 void update(HomeEvent e, Home home)
          Apply a HomeEvent to a Home
 void update(HomeEvent e, Home home, HomeDevice device)
          Apply this event to a HomeDevice
 
Methods inherited from class sophware.home.io.HomeEventHandler
getEventHandler, isActive, setActive, setAllActive, setEventHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsteonEventHandler

public InsteonEventHandler()
Method Detail

update

public void update(HomeEvent e,
                   Home home)
Apply a HomeEvent to a Home

Finds the device in the Home and updates it. If device does not exist and HomeEvent is Insteon Broadcast ID it attempts to create the device using the InsteonDeviceFactory.

Specified by:
update in class HomeEventHandler
Parameters:
e - the HomeEvent
home - the home
See Also:
InsteonDeviceFactory, update(HomeEvent,Home,HomeDevice)

update

public void update(HomeEvent e,
                   Home home,
                   HomeDevice device)
Apply this event to a HomeDevice

HomeDevices that do not override their update method will call this method to process HomeEvents

Specified by:
update in class HomeEventHandler
Parameters:
e - the HomeEvent
home - the Home
device - the HomeDevice
See Also:
HomeDevice.update(Home,HomeEvent)