cz.cuni.amis.pogamut.ut2004multi.communication.worldview
Class UT2004VisionLocalWorldView

Package class diagram package UT2004VisionLocalWorldView
java.lang.Object
  extended by cz.cuni.amis.pogamut.multi.communication.worldview.impl.AbstractLocalWorldView
      extended by cz.cuni.amis.pogamut.multi.communication.worldview.impl.EventDrivenLocalWorldView
          extended by cz.cuni.amis.pogamut.multi.communication.worldview.impl.VisionLocalWorldView
              extended by cz.cuni.amis.pogamut.multi.communication.worldview.impl.BatchAwareLocalWorldView
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.AbstractLocalWorldView
AbstractLocalWorldView.LazyCompositeObjectMap<T extends ICompositeWorldObject>
 
Field Summary
protected  Collection<WorldObjectId> currentBatch
           
protected  Collection<WorldObjectId> lastBatch
           
 
Fields inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.BatchAwareLocalWorldView
bufferedEvents, eventBuffer
 
Fields inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.VisionLocalWorldView
syncVisibleClassMap, syncVisibleMap, visibleClassMap, visibleMap
 
Fields inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.EventDrivenLocalWorldView
notifyEventsList, receiveEventProcessing, WORLDVIEW_DEPENDENCY
 
Fields inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.AbstractLocalWorldView
actLocalWorldObjects, agentId, classMap, COMPONENT_ID, control, controller, eventBus, log, sharedWorldView, syncClassMap
 
Constructor Summary
UT2004VisionLocalWorldView(ComponentDependencies dependencies, ILifecycleBus bus, IAgentLogger logger, ISharedWorldView parentWorldView, ITeamedAgentId agentId)
           
 
Method Summary
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)
           
 
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.VisionLocalWorldView
addVisible, getAllVisible, getAllVisible, getVisible, getVisible, objectUpdatedEvent, removeVisible
 
Methods inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.EventDrivenLocalWorldView
innerNotify, notifyAfterPropagation, notifyImmediately, raiseEvent
 
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
 
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.worldview.IWorldChangeEventInput
notifyAfterPropagation
 
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponent
getComponentId
 

Field Detail

lastBatch

protected Collection<WorldObjectId> lastBatch

currentBatch

protected Collection<WorldObjectId> currentBatch
Constructor Detail

UT2004VisionLocalWorldView

public UT2004VisionLocalWorldView(ComponentDependencies dependencies,
                                  ILifecycleBus bus,
                                  IAgentLogger logger,
                                  ISharedWorldView parentWorldView,
                                  ITeamedAgentId agentId)
Method Detail

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.