public abstract class UT2004VisionLocalWorldView extends BatchAwareLocalWorldView
AbstractLocalWorldView.LazyCompositeObjectMap<T extends ICompositeWorldObject>
Modifier and Type | Field and Description |
---|---|
protected Collection<WorldObjectId> |
currentBatch |
protected Collection<WorldObjectId> |
lastBatch |
bufferedEvents, eventBuffer
syncVisibleClassMap, syncVisibleMap, visibleClassMap, visibleMap
notifyEventsList, receiveEventProcessing, WORLDVIEW_DEPENDENCY
actLocalWorldObjects, agentId, classMap, COMPONENT_ID, control, controller, eventBus, log, sharedWorldView, syncClassMap
Constructor and Description |
---|
UT2004VisionLocalWorldView(ComponentDependencies dependencies,
ILifecycleBus bus,
IAgentLogger logger,
ISharedWorldView parentWorldView,
ITeamedAgentId agentId) |
Modifier and Type | Method and Description |
---|---|
protected ICompositeWorldObject |
createCompositeObject(ILocalWorldObject localObject,
ISharedWorldObject sharedObject,
IStaticWorldObject staticObject) |
protected void |
disappearObject(WorldObjectId id,
long time) |
protected void |
localEventNotify(ILocalWorldObjectUpdatedEvent event)
If the event updates a Viewable object, this method manages making it disappear when no update is recieved for it
- this means the object is not in FoW of our agent.
|
void |
notify(IWorldChangeEvent event) |
bufferObjectEvent, flushEvents, isBatchBeginEvent, isBatchEndEvent, isLocked, kill, lock, notifySharedBegin, objectAppeared, objectCreated, objectDestroyed, objectDisappeared, objectUpdated, sharedBatchFinished, stop, unlock
addVisible, getAllVisible, getAllVisible, getVisible, getVisible, objectUpdatedEvent, removeVisible
innerNotify, notifyAfterPropagation, notifyImmediately, raiseEvent
addEventListener, addLocalWorldObject, addObjectListener, addObjectListener, addObjectListener, addObjectListener, addOldLocalWorldObject, cleanUp, get, get, get, get, get, getAgentId, getAll, getAll, getAll, getAll, getComponentId, getCurrentTimeKey, getEventBus, getLocal, getLocal, getMostRecentLocalWorldObject, getSingle, getSingle, isListening, isListening, isListening, isListening, isListening, isListening, isPaused, isRunning, lockTime, pause, prePause, preStop, removeEventListener, removeListener, removeLocalWorldObject, removeObjectListener, removeObjectListener, removeObjectListener, removeObjectListener, reset, resume, setCurrentTime, setInitialTime, start, unlockTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEventListener, addObjectListener, addObjectListener, addObjectListener, addObjectListener, get, get, get, getAgentId, getAll, getAll, getCurrentTimeKey, getEventBus, getLocal, getSingle, isListening, isListening, isListening, isListening, isListening, isListening, lockTime, notifyImmediately, removeEventListener, removeListener, removeObjectListener, removeObjectListener, removeObjectListener, removeObjectListener, setCurrentTime, setInitialTime, unlockTime
notifyAfterPropagation
getComponentId
protected Collection<WorldObjectId> lastBatch
protected Collection<WorldObjectId> currentBatch
public UT2004VisionLocalWorldView(ComponentDependencies dependencies, ILifecycleBus bus, IAgentLogger logger, ISharedWorldView parentWorldView, ITeamedAgentId agentId)
protected ICompositeWorldObject createCompositeObject(ILocalWorldObject localObject, ISharedWorldObject sharedObject, IStaticWorldObject staticObject)
createCompositeObject
in class AbstractLocalWorldView
public void notify(IWorldChangeEvent event)
notify
in interface IWorldChangeEventInput
notify
in class BatchAwareLocalWorldView
protected void disappearObject(WorldObjectId id, long time)
disappearObject
in class BatchAwareLocalWorldView
protected void localEventNotify(ILocalWorldObjectUpdatedEvent event)
event
- Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.