|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IObjectManager<O extends ISimulationObject,L extends IObjectListener<O>>
An object manager allows a set of simulation objects to be tracked and events
fired when they are changed. specific interface exist for all of the
simulation objects
This interface is for read only. There are also the
IMutableObjectManager and IRequestableObjectManager which
permit the modification, addition, and request of objects
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||