|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMutableObjectManager<O extends ISimulationObject,L extends IObjectListener<O>>
The mutable object manager extends the IObjectManager to support the
adding, removing, and updating of simulation objects.
add and remove are fairly obvious, update requires a little more finese.
Instead of directly updating objects, we use 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.
Note, this has methods for the adding and removing of objects - not the
creation of them. It is the IRequestableObjectManager that is able to
create new objects since the creation has to go through CR.
IRequestableObjectManager,
IObjectManager| Method Summary | |
|---|---|
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 |
| Methods inherited from interface org.commonreality.object.manager.IObjectManager |
|---|
addListener, get, getIdentifiers, getListeners, hasListeners, removeListener, waitForChange |
| Method Detail |
|---|
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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||