|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.berkeley.guir.papier_mache.event.EventFilter
A class that accepts events and filters them according to a specified ObjectClassifier. The filtered events are sent to the VisionListener passed in to the constructor.
Constructor Summary | |
---|---|
EventFilter(ObjectClassifier classif,
PhobListener visionListener)
|
Method Summary | |
---|---|
void |
addClassification(ObjectClassifier oc)
|
void |
addListener(PhobListener listener)
|
void |
phobAdded(PhobEvent visEvent)
Called when a PhobProducer has sensed a new object |
void |
phobRemoved(PhobEvent visEvent)
Called when an object is removed from a PhobProducer's sensor |
void |
phobUpdated(PhobEvent visEvent)
Called when new information is available about a previously found object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventFilter(ObjectClassifier classif, PhobListener visionListener)
Method Detail |
---|
public void phobAdded(PhobEvent visEvent)
PhobListener
phobAdded
in interface PhobListener
visEvent
- an event describing the found objectpublic void phobUpdated(PhobEvent visEvent)
PhobListener
phobUpdated
in interface PhobListener
visEvent
- an event with new information about the found objectpublic void phobRemoved(PhobEvent visEvent)
PhobListener
phobRemoved
in interface PhobListener
visEvent
- an event referencing the removed objectpublic void addClassification(ObjectClassifier oc)
public void addListener(PhobListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |