|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT> cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule<UT2004Bot> cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Requests
public class Requests
Memory module specialized on requests to the map.
It is designed to be initialized inside IUT2004BotController.initializeController(UT2004Bot)
method call
and may be used since IUT2004BotController.botInitialized(cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo, cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChange, cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessage)
is called.
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule |
---|
act, worldView |
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
agent, controller, eventBus, log |
Constructor Summary | |
---|---|
Requests(UT2004Bot bot)
Constructor. |
|
Requests(UT2004Bot bot,
java.util.logging.Logger log)
Constructor. |
Method Summary | |
---|---|
protected void |
cleanUp()
Hook where to perform clean up of data structures of the module. |
Flag<java.lang.Long> |
getLastPong()
Returns flag that holds the value of 'last pong receive time'. |
Flag<java.lang.Long> |
ping()
Sends PING message to the server, use getLastPong() to see the results. |
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Requests(UT2004Bot bot)
bot
- worldView WorldView object to read the info from.public Requests(UT2004Bot bot, java.util.logging.Logger log)
bot
- worldView WorldView object to read the info from.log
- Logger to be used for logging runtime/debug info. If null, module creates its own logger.Method Detail |
---|
public Flag<java.lang.Long> ping()
getLastPong()
to see the results.
System.currentTimeMillis()
readings of the last Pong
message received.public Flag<java.lang.Long> getLastPong()
protected void cleanUp()
AgentModule
Called from AgentModule.stop()
, AgentModule.kill()
, AgentModule.reset()
.
cleanUp
in class AgentModule<UT2004Bot>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |