cz.cuni.amis.pogamut.ut2004.communication.worldview
Class UT2004WorldView

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView
      extended by cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView
          extended by cz.cuni.amis.pogamut.base3d.worldview.impl.VisionWorldView
              extended by cz.cuni.amis.pogamut.base3d.worldview.impl.BatchAwareWorldView
                  extended by cz.cuni.amis.pogamut.ut2004.communication.worldview.UT2004WorldView
All Implemented Interfaces:
IWorldChangeEventInput, IWorldView, IComponent, IVisionWorldView
Direct Known Subclasses:
UT2004LockableWorldView, UT2004SyncLockableWorldView

public class UT2004WorldView
extends BatchAwareWorldView

WorldView understanding some UT2004 semantics.


Field Summary
static java.lang.String WORLDVIEW_DEPENDENCY
           
 
Fields inherited from class cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView
notifyEventsList, receiveEventProcessing
 
Fields inherited from class cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView
COMPONENT_ID, control, controller, eventBus, log
 
Constructor Summary
UT2004WorldView(ComponentDependencies dependencies, IMediator mediator, IComponentBus bus, IAgentLogger log)
           
 
Method Summary
protected  boolean isBatchBeginEvent(IWorldChangeEvent evt)
          Is this event a batch begin event? It is needed for the locking to be working correctly.
protected  boolean isBatchEndEvent(IWorldChangeEvent evt)
          Is this event a batch end event? If so some extra events may be generated in processing this message.
protected  void setDisappearedFlag(IViewable obj)
          Sets the visible flag to true on IViewable objects.
 
Methods inherited from class cz.cuni.amis.pogamut.base3d.worldview.impl.BatchAwareWorldView
batchAwareWorldViewNotify, hasObjectsToProcess, notify, notifyImmediately, objectAppeared, objectDisappeared
 
Methods inherited from class cz.cuni.amis.pogamut.base3d.worldview.impl.VisionWorldView
addVisibleObject, cleanUp, getAllVisible, getAllVisible, getVisible, getVisible, objectCreated, objectDestroyed, objectUpdatedEvent, removeVisibleObject
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView
innerNotify, objectUpdated, raiseEvent
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView
addEventListener, addObjectListener, addObjectListener, addObjectListener, addObjectListener, addWorldObject, 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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.worldview.IWorldView
addEventListener, addObjectListener, addObjectListener, addObjectListener, addObjectListener, get, get, getAll, getAll, getEventBus, getSingle, isListening, isListening, isListening, isListening, isListening, isListening, removeEventListener, removeListener, removeObjectListener, removeObjectListener, removeObjectListener, removeObjectListener
 
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponent
getComponentId
 

Field Detail

WORLDVIEW_DEPENDENCY

public static final java.lang.String WORLDVIEW_DEPENDENCY
See Also:
Constant Field Values
Constructor Detail

UT2004WorldView

@Inject
public UT2004WorldView(ComponentDependencies dependencies,
                              IMediator mediator,
                              IComponentBus bus,
                              IAgentLogger log)
Method Detail

isBatchEndEvent

protected boolean isBatchEndEvent(IWorldChangeEvent evt)
Description copied from class: BatchAwareWorldView
Is this event a batch end event? If so some extra events may be generated in processing this message.

Specified by:
isBatchEndEvent in class BatchAwareWorldView
Returns:
true if this is a batch ending event

isBatchBeginEvent

protected boolean isBatchBeginEvent(IWorldChangeEvent evt)
Description copied from class: BatchAwareWorldView
Is this event a batch begin event? It is needed for the locking to be working correctly.

Specified by:
isBatchBeginEvent in class BatchAwareWorldView
Returns:
true if this is a batch ending event

setDisappearedFlag

protected void setDisappearedFlag(IViewable obj)
Description copied from class: BatchAwareWorldView
Sets the visible flag to true on IViewable objects.

Specified by:
setDisappearedFlag in class BatchAwareWorldView
Parameters:
obj - Object that disappeared