public class Requests extends SensomotoricModule<UT2004Bot>
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.
act, worldView
agent, controller, eventBus, log
Constructor and Description |
---|
Requests(UT2004Bot bot)
Constructor.
|
Requests(UT2004Bot bot,
Logger log)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUp() |
cz.cuni.amis.utils.flag.Flag<Long> |
getLastPong()
Returns flag that holds the value of 'last pong receive time'.
|
cz.cuni.amis.utils.flag.Flag<Long> |
ping()
Sends PING message to the server, use
getLastPong() to see the results. |
getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString
public Requests(UT2004Bot bot)
bot
- worldView WorldView object to read the info from.public cz.cuni.amis.utils.flag.Flag<Long> ping()
getLastPong()
to see the results.System.currentTimeMillis()
readings of the last Pong
message received.public cz.cuni.amis.utils.flag.Flag<Long> getLastPong()
protected void cleanUp()
cleanUp
in class AgentModule<UT2004Bot>
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.