org.commonreality.object.manager.impl
Class SensoryObjectManager<O extends ISensoryObject,L extends IObjectListener<O>>

java.lang.Object
  extended by org.commonreality.object.manager.impl.GeneralObjectManager<O,L>
      extended by 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

Constructor Summary
SensoryObjectManager()
           
 
Method Summary
 boolean add(java.util.Collection<O> objects)
          add all of the objects to the manager and fire an appropriate event
 boolean add(O object)
          add the specific simulation object and fire the add event
 java.util.Collection<IIdentifier> getIdentifiersByAgent(IIdentifier agentId)
           
 java.util.Collection<IIdentifier> getIdentifiersBySensor(IIdentifier sensorId)
           
 boolean remove(java.util.Collection<IIdentifier> ids)
          remove all the objects that are keyed on identifier.
 boolean remove(IIdentifier identifier)
          remove said object and fire event
 
Methods inherited from class org.commonreality.object.manager.impl.GeneralObjectManager
addListener, contains, get, getIdentifiers, getListeners, hasListeners, removeListener, update, update, waitForChange
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SensoryObjectManager

public SensoryObjectManager()
Method Detail

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>>