|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public void addUnitListener(UnitListener listener)
listener
- the object to recieve UnitEvent objects.UnitEvent
public void removeUnitListener(UnitListener listener)
listener
- the listener to unregister.public void addCommand(Command command)
command
- the Command to be queued.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |