kaos.core.csi.observe
Interface KAoSObservable

All Known Implementing Classes:
ActivMedia, Amigo, AMptzCamera, AMptzCameraSonar, AMsonar, BreveBot, DSCoordinatorImpl, ER1, Fran, GridDirectoryServicePolicyCert, HistoryAgent, Ivan, KAoSDirectoryService, KAoSObservableImpl, KAoSPlayer, KAoSRobot, KAoSRobotExample, KAoSRobotTest, KBot, LoginSimulationAgent, MinimalStubBot, Pioneer, StubBot, StubBot

public interface KAoSObservable

Defines the operations to register/deregister and notify KAoSObservers interested in updates when the state of this KAoSObservable changes or an event occurs that is associated with the KAoSObservable.


Method Summary
 void deregisterObserver(java.lang.String updateType, java.lang.Object updateCondition, KAoSObserver observer)
          Deregister the given KAoSObserver for the given update type from the registry of observers associated with this KAoSObservable.
 void notify(java.lang.String updateType, java.lang.Object updateCondition, java.lang.Object update)
          Notify observers interested in the given updateType wiht the given update object.
 void registerObserver(java.lang.String updateType, java.lang.Object updateCondition, KAoSObserver observer)
          Register the given KAoSObserver with this KAoSObservable for updates described by the updateType and updateConstraints.
 

Method Detail

registerObserver

void registerObserver(java.lang.String updateType,
                      java.lang.Object updateCondition,
                      KAoSObserver observer)
Register the given KAoSObserver with this KAoSObservable for updates described by the updateType and updateConstraints.

Parameters:
updateType - String indicating type of update the KAoSObserver is interested in.
updateCondition - Object describing the conditions under which to send the update.
observer - KAoSObserver registering with for updates.

deregisterObserver

void deregisterObserver(java.lang.String updateType,
                        java.lang.Object updateCondition,
                        KAoSObserver observer)
Deregister the given KAoSObserver for the given update type from the registry of observers associated with this KAoSObservable.

Parameters:
updateType - String indicating type of update the KAoSObserver is no longer interested in.
observer - KAoSObserver deregistering.

notify

void notify(java.lang.String updateType,
            java.lang.Object updateCondition,
            java.lang.Object update)
Notify observers interested in the given updateType wiht the given update object.

Parameters:
updateType - String describing the type of update to perform.
update - Object containing the update.