cz.cuni.amis.pogamut.ut2004multi.communication.worldview
Class UT2004VisionLocalWorldView
java.lang.Object
cz.cuni.amis.pogamut.multi.communication.worldview.impl.AbstractLocalWorldView
cz.cuni.amis.pogamut.multi.communication.worldview.impl.EventDrivenLocalWorldView
cz.cuni.amis.pogamut.multi.communication.worldview.impl.VisionLocalWorldView
cz.cuni.amis.pogamut.multi.communication.worldview.impl.BatchAwareLocalWorldView
cz.cuni.amis.pogamut.ut2004multi.communication.worldview.UT2004VisionLocalWorldView
- All Implemented Interfaces:
- IWorldChangeEventInput, IComponent, ILocalWorldView, IVisionLocalWorldView
- Direct Known Subclasses:
- UT2004LockableLocalWorldView
public abstract class UT2004VisionLocalWorldView
- extends BatchAwareLocalWorldView
Implements the logic to appear/disappear objects based on the GB2004 batches.
- Author:
- srlok
Methods inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.BatchAwareLocalWorldView |
bufferObjectEvent, flushEvents, isBatchBeginEvent, isBatchEndEvent, isLocked, kill, lock, notifySharedBegin, objectAppeared, objectCreated, objectDestroyed, objectDisappeared, objectUpdated, sharedBatchFinished, stop, unlock |
Methods inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.AbstractLocalWorldView |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.multi.communication.worldview.ILocalWorldView |
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 |
lastBatch
protected Collection<WorldObjectId> lastBatch
currentBatch
protected Collection<WorldObjectId> currentBatch
UT2004VisionLocalWorldView
public UT2004VisionLocalWorldView(ComponentDependencies dependencies,
ILifecycleBus bus,
IAgentLogger logger,
ISharedWorldView parentWorldView,
ITeamedAgentId agentId)
createCompositeObject
protected ICompositeWorldObject createCompositeObject(ILocalWorldObject localObject,
ISharedWorldObject sharedObject,
IStaticWorldObject staticObject)
- Specified by:
createCompositeObject
in class AbstractLocalWorldView
notify
public void notify(IWorldChangeEvent event)
- Specified by:
notify
in interface IWorldChangeEventInput
- Overrides:
notify
in class BatchAwareLocalWorldView
disappearObject
protected void disappearObject(WorldObjectId id,
long time)
- Specified by:
disappearObject
in class BatchAwareLocalWorldView
localEventNotify
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.
- Parameters:
event
-
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.