public interface ILockableWorldView extends IWorldView
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocked()
Whether the worldview is locked.
|
void |
lock()
Lock the worldview, preventing it from raising any new events.
|
void |
unlock()
Unlock the worldview, processing all events that came between lock() / unlock() calls.
|
addEventListener, addObjectListener, addObjectListener, addObjectListener, addObjectListener, get, get, get, getAll, getAll, getEventBus, getSingle, isListening, isListening, isListening, isListening, isListening, isListening, removeEventListener, removeListener, removeObjectListener, removeObjectListener, removeObjectListener, removeObjectListenernotify, notifyAfterPropagation, notifyImmediatelygetComponentIdvoid lock()
throws cz.cuni.amis.utils.exception.PogamutInterruptedException,
ComponentNotRunningException,
ComponentPausedException
When locked - the worldview must store all incoming events and process them during unlock.
Note that it is implementation-dependent whether this method is blocking or not.
cz.cuni.amis.utils.exception.PogamutInterruptedExceptionComponentNotRunningExceptionComponentPausedExceptionvoid unlock()
throws ComponentNotRunningException,
ComponentPausedException
boolean isLocked()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.