public abstract class BatchAwareSharedWorldView extends EventDrivenSharedWorldView
SharedBatchBeginEvent and batchEndEvents which are left for the user to override
-> the UT2004 version has its own implementation in descendant worldview )
the sharedWorldView will then notify back with SharedBatchFinishedEvent when all events have been processed.notifyEventsList, receiveEventProcessing, syncEventList, WORLDVIEW_DEPENDENCYCOMPONENT_ID, control, controller, currentSharedProperties, idClassMap, localWorldViews, log, sharedProperties, sharedWorldObjects, staticWorldObjects, syncCurrentSharedProperties, syncIdClassMap, syncSharedProperties, syncSharedWorldObjects| Constructor and Description |
|---|
BatchAwareSharedWorldView(Logger logger)
Construtor - all we need is logger.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
isBatchEndEvent(IWorldChangeEvent event) |
void |
notify(IWorldChangeEvent event) |
protected void |
notifyLocalWorldViews(Set<IAgentId> waiting,
long time)
Notifies all waiting local world views, that batch belonging to 'time' has been exported by all local world views.
|
protected void |
processBeginEvent(SharedBatchBeginEvent event)
Adds a lock for the desired time.
|
protected void |
processEndEvent(IWorldChangeEvent event)
Processes batch-end event ...
|
addMsgClass, innerNotify, objectCreated, objectDestroyed, objectUpdated, propertyCreated, propertyUpdated, propertyUpdatedEvent, raiseEvent, sharedObjectUpdatedEvent, staticObjectUpdatedEventaddComponentBus, addEventListener, addObjectListener, addObjectListener, addObjectListener, addObjectListener, addOldSharedProperty, addSharedProperty, addSharedProperty, addSharedWorldObject, addStaticWorldObject, cleanUp, createSharedObject, getComponentId, getShared, getSharedProperties, getSharedProperty, getStatic, isListening, isListening, isListening, isListening, isListening, isListening, isPaused, isRunning, kill, pause, prePause, preStop, registerLocalWorldView, removeComponentBus, removeEventListener, removeListener, removeObjectListener, removeObjectListener, removeObjectListener, removeObjectListener, removeSharedProperty, removeSharedProperty, removeStaticWorldObject, removeStaticWorldObject, reset, resume, start, stoppublic BatchAwareSharedWorldView(Logger logger)
logger - protected abstract boolean isBatchEndEvent(IWorldChangeEvent event)
protected void notifyLocalWorldViews(Set<IAgentId> waiting, long time)
SharedBatchBeginEvent occurs for 'time'.waiting - agent which local wvs should be notifiedtime - time for which the batch has finishedprotected void processBeginEvent(SharedBatchBeginEvent event)
time - protected void processEndEvent(IWorldChangeEvent event)
time - public void notify(IWorldChangeEvent event)
notify in interface ISharedWorldChangeEventInputnotify in class EventDrivenSharedWorldViewCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.