public abstract class BatchAwareWorldView extends VisionWorldView
| Modifier and Type | Field and Description |
|---|---|
static String |
WORLDVIEW_DEPENDENCY |
notifyEventsList, receiveEventProcessingCOMPONENT_ID, control, controller, eventBus, log| Constructor and Description |
|---|
BatchAwareWorldView(ComponentDependencies dependencies,
IComponentBus bus,
IAgentLogger log) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
batchAwareWorldViewNotify(IWorldChangeEvent event) |
boolean |
hasObjectsToProcess()
Any objects waiting in
currentObjectBatch for processing? |
protected abstract boolean |
isBatchBeginEvent(IWorldChangeEvent evt)
Is this event a batch begin event? It is needed for the locking to be
working correctly.
|
protected abstract boolean |
isBatchEndEvent(IWorldChangeEvent evt)
Is this event a batch end event? If so some extra events may be generated
in processing this message.
|
void |
notify(IWorldChangeEvent event)
New event was generated from the world.
|
void |
notifyImmediately(IWorldChangeEvent event)
Notify immediately will process the event right away, it won't use "event recursion buffer" to postpone the processing of the event.
|
protected void |
objectAppeared(IViewable obj)
Called whenever the object appears in the agent's FOV.
|
protected void |
objectDisappeared(IViewable obj)
Called whenever the object disappears from the agent's FOV.
|
protected abstract void |
setDisappearedFlag(IViewable obj)
Sets the visible flag to true on
IViewable objects. |
addVisibleObject, 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, stop, 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, removeObjectListenernotifyAfterPropagationgetComponentIdpublic static final String WORLDVIEW_DEPENDENCY
public BatchAwareWorldView(ComponentDependencies dependencies, IComponentBus bus, IAgentLogger log)
protected abstract boolean isBatchEndEvent(IWorldChangeEvent evt)
evt - protected abstract boolean isBatchBeginEvent(IWorldChangeEvent evt)
evt - protected abstract void setDisappearedFlag(IViewable obj)
IViewable objects.obj - Object that disappearedprotected void batchAwareWorldViewNotify(IWorldChangeEvent event)
public void notify(IWorldChangeEvent event)
IWorldChangeEventInputnotify in interface IWorldChangeEventInputnotify in class EventDrivenWorldViewpublic void notifyImmediately(IWorldChangeEvent event) throws ComponentNotRunningException, ComponentPausedException
IWorldChangeEventInputThis will work even if the world view is locked!
notifyImmediately in interface IWorldChangeEventInputnotifyImmediately in class EventDrivenWorldViewComponentNotRunningExceptionComponentPausedExceptionprotected void objectAppeared(IViewable obj)
VisionWorldViewobjectAppeared in class VisionWorldViewprotected void objectDisappeared(IViewable obj)
VisionWorldViewobjectDisappeared in class VisionWorldViewpublic boolean hasObjectsToProcess()
currentObjectBatch for processing?Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.