public interface IObjectManager<O extends ISimulationObject,L extends IObjectListener<O>>
IMutableObjectManager
and IRequestableObjectManager
which
permit the modification, addition, and request of objectsModifier and Type | Method and Description |
---|---|
void |
addListener(L listener,
java.util.concurrent.Executor exector)
add an event listener
|
O |
get(IIdentifier affId)
return the simulation object refered to by the identifier
|
java.util.Collection<IIdentifier> |
getIdentifiers()
return all the identifiers of simulation objects that this manager is
tracking
|
java.util.Collection<L> |
getListeners()
return all the installed listeners
|
boolean |
hasListeners()
are there any event listeners?
|
void |
removeListener(L listener)
remove said listener
|
void |
waitForChange()
wait until something has been added, removed, updated
|
java.util.Collection<IIdentifier> getIdentifiers()
O get(IIdentifier affId)
affId
- void addListener(L listener, java.util.concurrent.Executor exector)
listener
- exector
- void removeListener(L listener)
listener
- boolean hasListeners()
java.util.Collection<L> getListeners()
void waitForChange() throws java.lang.InterruptedException
java.lang.InterruptedException