cz.cuni.amis.pogamut.ut2004.hideandseek.observer
Class HSObserver

Package class diagram package HSObserver
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent
      extended by cz.cuni.amis.pogamut.base.agent.impl.AbstractObservingAgent<WORLD_VIEW>
          extended by cz.cuni.amis.pogamut.base.agent.impl.AbstractGhostAgent<WORLD_VIEW,ACT>
              extended by cz.cuni.amis.pogamut.ut2004.observer.impl.AbstractUT2004Observer<UT2004WorldView,cz.cuni.amis.pogamut.base.communication.command.IAct>
                  extended by cz.cuni.amis.pogamut.ut2004.observer.impl.UT2004Observer
                      extended by cz.cuni.amis.pogamut.ut2004.hideandseek.observer.HSObserver
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.agent.IAgent, cz.cuni.amis.pogamut.base.agent.IGhostAgent, cz.cuni.amis.pogamut.base.agent.IObservingAgent, cz.cuni.amis.pogamut.base.component.IComponent, cz.cuni.amis.pogamut.base.component.IComponentAware, cz.cuni.amis.pogamut.base.component.IControllable, IUT2004Observer

public class HSObserver
extends UT2004Observer


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent
events, INTROSPECTION_ROOT_NAME, log, LOG_CATEGORY_NAME
 
Constructor Summary
HSObserver(UT2004AgentParameters params, cz.cuni.amis.pogamut.base.component.bus.IComponentBus bus, cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger agentLogger, UT2004WorldView worldView, cz.cuni.amis.pogamut.base.communication.command.IAct act)
           
 
Method Summary
 void configureObserver()
           
 HSObserverParams getParams()
           
 List<Player> getPlayersVisibleMoreThanMillis(long millis)
           
protected  void playerUpdated(cz.cuni.amis.pogamut.base.communication.worldview.object.event.WorldObjectUpdatedEvent<Player> event)
           
protected  void startAgent()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.observer.impl.AbstractUT2004Observer
createPasswordReply, getPasswordReply, getWorldView, killAgent, readyCommandRequested, reset, resetAgent, setPassword, startPausedAgent, stopAgent
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractGhostAgent
getAct
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent
addDependency, addDependency, addDependency, addJMXComponents, awaitState, awaitState, componentFatalError, componentStarted, componentStarted, componentStopped, componentStopping, createAgentJMX, createIntrospection, equals, getComponentId, getEventBus, getIntrospection, getJMX, getLog, getLogger, getName, getState, hashCode, inState, kill, notInState, pause, pauseAgent, preKillAgent, preStopAgent, resetEvent, resume, resumeAgent, setState, start, startPaused, stop, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IGhostAgent
getAct
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IAgent
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop
 
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponentAware
getEventBus
 

Constructor Detail

HSObserver

@Inject
public HSObserver(UT2004AgentParameters params,
                         cz.cuni.amis.pogamut.base.component.bus.IComponentBus bus,
                         cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger agentLogger,
                         UT2004WorldView worldView,
                         cz.cuni.amis.pogamut.base.communication.command.IAct act)
Method Detail

getParams

public HSObserverParams getParams()
Overrides:
getParams in class UT2004Observer

startAgent

protected void startAgent()
Overrides:
startAgent in class AbstractUT2004Observer<UT2004WorldView,cz.cuni.amis.pogamut.base.communication.command.IAct>

configureObserver

public void configureObserver()

playerUpdated

protected void playerUpdated(cz.cuni.amis.pogamut.base.communication.worldview.object.event.WorldObjectUpdatedEvent<Player> event)

getPlayersVisibleMoreThanMillis

public List<Player> getPlayersVisibleMoreThanMillis(long millis)


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