public interface IMutableObjectManager<O extends ISimulationObject,L extends IObjectListener<O>> extends IObjectManager<O,L>
IObjectManager
to support the
adding, removing, and updating of simulation objects. IObjectDelta
which allow
you to collect all the changes requested for an object and then apply them at
once. The IObjectDelta
is also sent as part of the event notification
so that listeners know exactly what has changed.IRequestableObjectManager
that is able to
create new objects since the creation has to go through CR.IRequestableObjectManager
,
IObjectManager
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.util.Collection<O> objects) |
boolean |
add(O object)
add the specific simulation object and fire the add event
|
boolean |
remove(java.util.Collection<IIdentifier> identifiers) |
boolean |
remove(IIdentifier identifier)
remove said object and fire event
|
boolean |
update(java.util.Collection<IObjectDelta> deltas)
update all of these bad boys.
|
boolean |
update(IObjectDelta delta)
update the object that's change is desrcibed by the delta and fire the
appropriate event
|
addListener, get, getIdentifiers, getListeners, hasListeners, removeListener, waitForChange
boolean add(O object)
boolean add(java.util.Collection<O> objects)
boolean remove(IIdentifier identifier)
identifier
- boolean remove(java.util.Collection<IIdentifier> identifiers)
boolean update(IObjectDelta delta)
delta
- boolean update(java.util.Collection<IObjectDelta> deltas)
deltas
-