org.commonreality.object.manager.impl
Class SensoryObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>
java.lang.Object
org.commonreality.object.manager.impl.GeneralObjectManager<O,L>
org.commonreality.object.manager.impl.SensoryObjectManager<O,L>
- All Implemented Interfaces:
- IMutableObjectManager<O,L>, IObjectManager<O,L>
- Direct Known Subclasses:
- AfferentObjectManager, EfferentObjectManager
public class SensoryObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>
- extends GeneralObjectManager<O,L>
- Author:
- developer
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SensoryObjectManager
public SensoryObjectManager()
getIdentifiersByAgent
public java.util.Collection<IIdentifier> getIdentifiersByAgent(IIdentifier agentId)
- See Also:
IEfferentObjectManager.getIdentifiersByAgent(org.commonreality.identifier.IIdentifier)
getIdentifiersBySensor
public java.util.Collection<IIdentifier> getIdentifiersBySensor(IIdentifier sensorId)
- See Also:
IEfferentObjectManager.getIdentifiersBySensor(org.commonreality.identifier.IIdentifier)
add
public boolean add(O object)
- add the specific simulation object and fire the add event
- Specified by:
add in interface IMutableObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>- Overrides:
add in class GeneralObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>
add
public boolean add(java.util.Collection<O> objects)
- Description copied from class:
GeneralObjectManager
- add all of the objects to the manager and fire an appropriate event
- Specified by:
add in interface IMutableObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>- Overrides:
add in class GeneralObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>
remove
public boolean remove(IIdentifier identifier)
- remove said object and fire event
- Specified by:
remove in interface IMutableObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>- Overrides:
remove in class GeneralObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>
- Parameters:
identifier -
remove
public boolean remove(java.util.Collection<IIdentifier> ids)
- Description copied from class:
GeneralObjectManager
- remove all the objects that are keyed on identifier. this fire a bulk
remove event
- Specified by:
remove in interface IMutableObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>- Overrides:
remove in class GeneralObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>