cz.cuni.amis.pogamut.defcon.communication.worldview
Class DefConWorldView

Package class diagram package DefConWorldView
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.base3d.worldview.impl.LockableBatchAwareWorldView
                      extended by cz.cuni.amis.pogamut.defcon.communication.worldview.DefConWorldView
All Implemented Interfaces:
ILockableWorldView, IWorldChangeEventInput, IWorldView, IComponent, IVisionWorldView

public class DefConWorldView
extends LockableBatchAwareWorldView

Worldview implementation specific for defcon.

Author:
Radek 'Black_Hand' Pibil

Field Summary
static 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
DefConWorldView(ComponentDependencies dependencies, DefConMessageProducer messageProducer, IComponentBus bus, IAgentLogger log)
           
 
Method Summary
 float getCurrentTime()
           
 GameInfo getGameInfo()
          Returns game info object used to query defcon.
 double getMaxX()
          Returns maximal X value.
 double getMaxY()
          Returns maximal Y value.
 double getMinX()
          Returns minimal X value.
 double getMinY()
          Returns minimal Y value.
 float getStartTime()
           
 double getXSize()
          Returns width of the map.
 double getYSize()
          Returns height of the map.
protected  boolean isBatchBeginEvent(IWorldChangeEvent evt)
           
protected  boolean isBatchEndEvent(IWorldChangeEvent evt)
           
protected  void setDisappearedFlag(IViewable obj)
           
 void update()
          Updates message producer and reports the event.
 void updateProducer()
          Updates the message producer.
 
Methods inherited from class cz.cuni.amis.pogamut.base3d.worldview.impl.LockableBatchAwareWorldView
isLocked, lock, notify, unlock
 
Methods inherited from class cz.cuni.amis.pogamut.base3d.worldview.impl.BatchAwareWorldView
batchAwareWorldViewNotify, hasObjectsToProcess, 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, notifyAfterPropagation, objectUpdated, raiseEvent
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView
addEventListener, 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, 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, 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.communication.worldview.IWorldChangeEventInput
notifyAfterPropagation, notifyImmediately
 
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponent
getComponentId
 

Field Detail

WORLDVIEW_DEPENDENCY

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

DefConWorldView

@Inject
public DefConWorldView(ComponentDependencies dependencies,
                              DefConMessageProducer messageProducer,
                              IComponentBus bus,
                              IAgentLogger log)
Method Detail

isBatchBeginEvent

protected boolean isBatchBeginEvent(IWorldChangeEvent evt)
Specified by:
isBatchBeginEvent in class LockableBatchAwareWorldView

isBatchEndEvent

protected boolean isBatchEndEvent(IWorldChangeEvent evt)
Specified by:
isBatchEndEvent in class BatchAwareWorldView

setDisappearedFlag

protected void setDisappearedFlag(IViewable obj)
Specified by:
setDisappearedFlag in class BatchAwareWorldView

update

public void update()
Updates message producer and reports the event.


getStartTime

public float getStartTime()

getCurrentTime

public float getCurrentTime()

getGameInfo

public GameInfo getGameInfo()
Returns game info object used to query defcon.

Returns:

getMinX

public double getMinX()
Returns minimal X value.

Returns:

getMaxX

public double getMaxX()
Returns maximal X value.

Returns:

getMinY

public double getMinY()
Returns minimal Y value.

Returns:

getMaxY

public double getMaxY()
Returns maximal Y value.

Returns:

getXSize

public double getXSize()
Returns width of the map.

Returns:

getYSize

public double getYSize()
Returns height of the map.

Returns:

updateProducer

public void updateProducer()
Updates the message producer.



Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.