kaos.brahms.blik.example
Class BLIKObserverRobotSearch
java.lang.Object
kaos.brahms.blik.example.BLIKObserverRobotSearch
- All Implemented Interfaces:
- KAoSObserver
public class BLIKObserverRobotSearch
- extends java.lang.Object
- implements KAoSObserver
This class is an example of how to search for robots in the KAoS Directory Service, how to
register to/deregister from the robots as a KAoSObserver for the RobotActionConcepts.Movement() event
and receive updates for that event.
The interaction with robots is accomplished via BLIK.
Method Summary |
java.lang.String |
getID()
Return the unique identifier of this observer. |
static void |
main(java.lang.String[] args)
|
void |
test()
|
void |
testDeregister(java.lang.String robotGUID,
java.lang.String updateType)
|
void |
testRegister(java.lang.String robotGUID,
java.lang.String updateType)
|
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 |
_blik
protected BLIK _blik
BLIKObserverRobotSearch
public BLIKObserverRobotSearch(BLIK blik,
java.lang.String myName,
java.lang.String id)
update
public 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.
- Specified by:
update
in interface KAoSObserver
- Parameters:
observableID
- String identifying the KAoSObservable sending the update.updateType
- String indicating type of update.updateCondition
- String containing the condition for the update.update
- Object containing the update.
getID
public java.lang.String getID()
- Return the unique identifier of this observer.
- Specified by:
getID
in interface KAoSObserver
- Returns:
- String containing the unique ID of this observer.
test
public void test()
testRegister
public void testRegister(java.lang.String robotGUID,
java.lang.String updateType)
testDeregister
public void testDeregister(java.lang.String robotGUID,
java.lang.String updateType)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception