public class RequestableEfferentCommandManager extends EfferentCommandManager implements IRequestableObjectManager<IEfferentCommand,IEfferentCommandListener>
Constructor and Description |
---|
RequestableEfferentCommandManager(IParticipant participant) |
Modifier and Type | Method and Description |
---|---|
void |
addFreeIdentifiers(java.util.Collection<IIdentifier> freeIdentifiers)
When a new block of identifiers is made available from CR, they are added
to the object manager
|
void |
prefetch(IIdentifier sensorIdentifier) |
IEfferentCommand |
request(IIdentifier sensorIdentifier)
Deprecated.
|
IIdentifier |
requestIdentifier(IIdentifier sensorIdentifier) |
addState, getEfferentCommands, getEfferentCommands, getIdentifiersByAgent, getIdentifiersBySensor, index, removeState, unindex
add, add, addListener, contains, fire, fireUpdate, get, getIdentifiers, getListeners, hasListeners, remove, remove, removeListener, update, update, waitForChange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, remove, remove, update, update
addListener, get, getIdentifiers, getListeners, hasListeners, removeListener, waitForChange
public RequestableEfferentCommandManager(IParticipant participant)
public void addFreeIdentifiers(java.util.Collection<IIdentifier> freeIdentifiers)
IRequestableObjectManager
addFreeIdentifiers
in interface IRequestableObjectManager<IEfferentCommand,IEfferentCommandListener>
IRequestableObjectManager.addFreeIdentifiers(java.util.Collection)
@Deprecated public IEfferentCommand request(IIdentifier sensorIdentifier)
RuntimeException
if called. This is
becaused IEfferentCommand
's are customized based on the need and
we cannot use a default implementation (as in AfferentObject
and
EfferentObject
). Agents should rather call
requestIdentifier(IIdentifier)
to get the IIdentifier
and
then instantiate the appropriate during the call to
IEfferentCommandTemplate.instantiate(org.commonreality.agents.IAgent, org.commonreality.object.IEfferentObject)
request
in interface IRequestableObjectManager<IEfferentCommand,IEfferentCommandListener>
IRequestableObjectManager.request(org.commonreality.identifier.IIdentifier)
public IIdentifier requestIdentifier(IIdentifier sensorIdentifier)
requestIdentifier
in interface IRequestableObjectManager<IEfferentCommand,IEfferentCommandListener>
public void prefetch(IIdentifier sensorIdentifier)