public abstract class SyncLockableBatchAwareWorldView extends BatchAwareWorldView implements ILockableWorldView
| Modifier and Type | Field and Description |
|---|---|
static String |
WORLDVIEW_DEPENDENCY |
notifyEventsList, receiveEventProcessingCOMPONENT_ID, control, controller, eventBus, log| Constructor and Description |
|---|
SyncLockableBatchAwareWorldView(ComponentDependencies dependencies,
IComponentBus bus,
IAgentLogger log) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInLock() |
boolean |
isLocked()
Whether the worldview is locked.
|
void |
lock()
When the world view is locked - no batches are processes until unlocked.
|
void |
notify(IWorldChangeEvent event)
Implements locking logic.
|
void |
stop()
Stops the world view.
|
void |
unlock()
Unlocks the world view - triggers processing of all events till the last
EndMessage that came between lock() / unlock() calls.
|
batchAwareWorldViewNotify, hasObjectsToProcess, isBatchBeginEvent, isBatchEndEvent, notifyImmediately, objectAppeared, objectDisappeared, setDisappearedFlagaddVisibleObject, cleanUp, getAllVisible, getAllVisible, getVisible, getVisible, objectCreated, objectDestroyed, objectUpdatedEvent, removeVisibleObjectinnerNotify, notifyAfterPropagation, objectUpdated, raiseEventaddEventListener, addObjectListener, addObjectListener, addObjectListener, addObjectListener, addWorldObject, get, get, get, getAll, getAll, getComponentId, getEventBus, getLog, getSingle, isListening, isListening, isListening, isListening, isListening, isListening, isPaused, isRunning, kill, pause, prePause, preStop, removeEventListener, removeListener, removeObjectListener, removeObjectListener, removeObjectListener, removeObjectListener, removeWorldObject, reset, resume, start, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEventListener, addObjectListener, addObjectListener, addObjectListener, addObjectListener, get, get, get, getAll, getAll, getEventBus, getSingle, isListening, isListening, isListening, isListening, isListening, isListening, removeEventListener, removeListener, removeObjectListener, removeObjectListener, removeObjectListener, removeObjectListenernotifyAfterPropagation, notifyImmediatelygetComponentIdpublic static final String WORLDVIEW_DEPENDENCY
@Inject public SyncLockableBatchAwareWorldView(ComponentDependencies dependencies, IComponentBus bus, IAgentLogger log)
public void lock()
throws cz.cuni.amis.utils.exception.PogamutInterruptedException
lock in interface ILockableWorldViewInterruptedExceptioncz.cuni.amis.utils.exception.PogamutInterruptedExceptionpublic void unlock()
unlock in interface ILockableWorldViewpublic boolean isLocked()
ILockableWorldViewisLocked in interface ILockableWorldViewpublic boolean isInLock()
public void notify(IWorldChangeEvent event)
notify in interface IWorldChangeEventInputnotify in class BatchAwareWorldViewpublic void stop()
AbstractWorldViewIf you override this method, do not forget to call super.stop().
stop in class AbstractWorldViewCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.