kaos.robots.capabilities.impl
Class DetectedObjectObservableImpl

java.lang.Object
  extended by kaos.robots.capabilities.impl.DetectedObjectObservableImpl
All Implemented Interfaces:
KAoSObserver, RobotObservable

public class DetectedObjectObservableImpl
extends java.lang.Object
implements RobotObservable, KAoSObserver


Field Summary
protected  double _delta
           
protected  java.util.Vector _detectedObjects
           
protected  int _objectIndex
           
protected  java.util.Vector _unconfirmed
           
 
Constructor Summary
DetectedObjectObservableImpl()
           
 
Method Summary
 void addDetectedObject(DetectedObject obj)
           
 void classifyObject(java.lang.String id, java.lang.String type, double certainty, java.lang.String source, java.lang.String method, long time)
           
 java.lang.String getID()
          Return the unique identifier of this observer.
 void removeDetectedObject(java.lang.String id)
           
 void setRobot(KAoSRobot kr)
           
 void startListening()
           
 void stopListening()
           
 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.
 void updateObjectClassification(java.util.HashMap properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_detectedObjects

protected java.util.Vector _detectedObjects

_unconfirmed

protected java.util.Vector _unconfirmed

_objectIndex

protected int _objectIndex

_delta

protected double _delta
Constructor Detail

DetectedObjectObservableImpl

public DetectedObjectObservableImpl()
Method Detail

setRobot

public void setRobot(KAoSRobot kr)
Specified by:
setRobot in interface RobotObservable

startListening

public void startListening()
Specified by:
startListening in interface RobotObservable

stopListening

public void stopListening()
Specified by:
stopListening in interface RobotObservable

update

public void update(java.lang.String observableID,
                   java.lang.String updateType,
                   java.lang.Object updateCondition,
                   java.lang.Object update)
            throws NotificationException
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.
Throws:
NotificationException

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.

addDetectedObject

public void addDetectedObject(DetectedObject obj)

removeDetectedObject

public void removeDetectedObject(java.lang.String id)

classifyObject

public void classifyObject(java.lang.String id,
                           java.lang.String type,
                           double certainty,
                           java.lang.String source,
                           java.lang.String method,
                           long time)

updateObjectClassification

public void updateObjectClassification(java.util.HashMap properties)