kaos.robots.core.test
Class CSIKAoSObserverExample

java.lang.Object
  extended by kaos.robots.core.test.CSIKAoSObserverExample
All Implemented Interfaces:
KAoSObserver

public class CSIKAoSObserverExample
extends java.lang.Object
implements KAoSObserver

$Revision: 1.4 $


Constructor Summary
CSIKAoSObserverExample(ObserverManager mgr, java.lang.String name)
           
CSIKAoSObserverExample(ObserverManager mgr, java.lang.String name, java.lang.String id)
           
 
Method Summary
 java.lang.String getID()
          Return the unique identifier of this observer.
static void main(java.lang.String[] args)
           
 void testDeregister()
           
 void testRegister()
           
 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
 

Constructor Detail

CSIKAoSObserverExample

public CSIKAoSObserverExample(ObserverManager mgr,
                              java.lang.String name)

CSIKAoSObserverExample

public CSIKAoSObserverExample(ObserverManager mgr,
                              java.lang.String name,
                              java.lang.String id)
Method Detail

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.
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.

testRegister

public void testRegister()

testDeregister

public void testDeregister()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception