x10
Interface Controller

All Known Implementing Classes:
CM11ASerialController, CM17ASerialController, SocketController

public interface Controller

Controller is implemented by any class that can act as an entry point for controlling x10 devices. A Controller must be able to distribute added Commands to ALL registered x10 hardware and software modules. A Controller must also handle the addition and removal of UnitListeners.

See Also:
Command, UnitListener

Method Summary
 void addCommand(Command command)
          addCommand adds a Command to the queue to be dispatched to all hardware and software x10 modules.
 void addUnitListener(UnitListener listener)
          addUnitListener registers the specified UnitListener to recieve ALL events that occur, whether initiated by hardware or software control modules.
 void removeUnitListener(UnitListener listener)
          removeUnitListener unregisters the specified UnitListener.
 

Method Detail

addUnitListener

public void addUnitListener(UnitListener listener)
addUnitListener registers the specified UnitListener to recieve ALL events that occur, whether initiated by hardware or software control modules.

Parameters:
listener - the object to recieve UnitEvent objects.
See Also:
UnitEvent

removeUnitListener

public void removeUnitListener(UnitListener listener)
removeUnitListener unregisters the specified UnitListener. If the specified UnitListener isn't registered, then it is ignored.

Parameters:
listener - the listener to unregister.

addCommand

public void addCommand(Command command)
addCommand adds a Command to the queue to be dispatched to all hardware and software x10 modules.

Parameters:
command - the Command to be queued.


Copyright ©2000-2005 Wade Wassenberg.
On the web: http://x10.homelinux.org.
Send bug reports to x10@wass.homelinux.net.
Last Modified June 1, 2005