kaos.robots.csi.testing
Class Observer
java.lang.Object
Test
kaos.robots.csi.testing.Observer
- All Implemented Interfaces:
- KAoSObserver
public class Observer
- extends Test
- implements KAoSObserver
Simple observer for many message types.
Constructor Summary |
Observer(java.lang.String observable)
|
Method Summary |
void |
deregister()
|
java.lang.String |
getID()
Return the unique identifier of this observer. |
static void |
main(java.lang.String[] args)
|
void |
register()
|
void |
update(java.lang.String observableID,
java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
Receive an update from the KAoSObservable when the KAoSObservable has a change or event to report. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPDATE_TYPES
public static java.lang.String[] UPDATE_TYPES
NAME_PREFIX
public static java.lang.String NAME_PREFIX
Observer
public Observer(java.lang.String observable)
register
public void register()
deregister
public void deregister()
update
public void update(java.lang.String observableID,
java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
- Description copied from interface:
KAoSObserver
- Receive an update from the KAoSObservable when the KAoSObservable has a change or event to report.
- Specified by:
update
in interface KAoSObserver
- Parameters:
observableID
- String identifying the KAoSObservable sending the update.updateType
- String indicating type of update.update
- Object containing the update.
getID
public java.lang.String getID()
- Description copied from interface:
KAoSObserver
- Return the unique identifier of this observer.
- Specified by:
getID
in interface KAoSObserver
- Returns:
- String containing the unique ID of this observer.
main
public static void main(java.lang.String[] args)