public class Requests extends SensomotoricModule<UDKBot>
It is designed to be initialized inside IUDKBotController.initializeController(UDKBot) method call
and may be used since IUDKBotController.botInitialized(cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.GameInfo, cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.ConfigChange, cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.InitedMessage)
is called.
act, worldViewagent, controller, eventBus, log| Constructor and Description |
|---|
Requests(UDKBot bot)
Constructor.
|
Requests(UDKBot bot,
Logger log)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
protected void |
start(boolean startPaused)
Provides initialization of the module (clearing internal data structures).
|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, stop, toStringpublic Requests(UDKBot 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 start(boolean startPaused)
start in class AgentModule<UDKBot>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.