public class PerceptManager
extends java.lang.Object
IObjectCreator
s, to find
the set of possible percepts for the object. The IObjectCreator
is
responsible for creating the IObjectKey
which tracks the
percept-object linkage as well as the initial ISimulationObject
(most
likely a IAfferentObject
). ISimulationObject
and IObjectKey
for that object is then
passed through the set of IObjectProcessor
s which can add additional
properties to the percept. BaseSensor
will all the additions and modifications( BaseSensor.add(Collection)
and BaseSensor.update(Collection)
. Removals are handled by flagging
flagForRemoval(Object)
the object, which then delegates the actual
clean up to the IObjectCreator
and the BaseSensor
Constructor and Description |
---|
PerceptManager(BaseSensor sensor) |
Modifier and Type | Method and Description |
---|---|
void |
flagForRemoval(java.lang.Object object)
flag this object as ready for removal
|
protected IObjectManager |
getObjectManager(ISensor sensor) |
BaseSensor |
getSensor() |
void |
install(IObjectCreator creater) |
void |
install(IObjectProcessor processor) |
void |
markAsDirty(java.lang.Object object)
call when an object is new or has changed.
|
void |
processDirtyObjects() |
void |
reset() |
public PerceptManager(BaseSensor sensor)
public BaseSensor getSensor()
public void reset()
public void install(IObjectCreator creater)
public void install(IObjectProcessor processor)
public void markAsDirty(java.lang.Object object)
object
- public void flagForRemoval(java.lang.Object object)
object
- protected IObjectManager getObjectManager(ISensor sensor)
public void processDirtyObjects()