|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController<BOT> cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController<BOT>
public class UT2004BotLogicController<BOT extends UT2004Bot>
Field Summary | |
---|---|
protected SyncUT2004BotLogic |
logicModule
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController |
---|
bot, log, user, USER_LOG_CATEGORY_ID |
Constructor Summary | |
---|---|
UT2004BotLogicController()
|
Method Summary | |
---|---|
long |
getLogicInitializeTime()
Returns upper-estimation of IAgentLogic#initializeLogic() method running time in millis. |
long |
getLogicShutdownTime()
Returns upper-estimation of IAgentLogic.logicShutdown() method running time in millis. |
void |
initializeController(BOT bot)
Called during the construction of the UT2004Bot before the GameBots2004 greets the bot even before
IUT2004BotController.prepareBot(UT2004Bot) method. |
void |
logic()
Called to perform the logic of the agent. |
void |
logicInitialize(LogicModule logicModule)
Called when the agent is started and just before the first IAgentLogic.logic() invocation. |
void |
logicShutdown()
Called whenever the LogicModule is stopping to end the logic. |
Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController |
---|
botInitialized, botKilled, botShutdown, botSpawned, finishControllerInitialization, getAct, getInitializeCommand, getLog, getPassword, getWorldView, prepareBot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotController |
---|
botInitialized, botKilled, botShutdown, botSpawned, finishControllerInitialization, getInitializeCommand, getLog, getPassword, prepareBot |
Field Detail |
---|
protected SyncUT2004BotLogic logicModule
Constructor Detail |
---|
public UT2004BotLogicController()
Method Detail |
---|
public void initializeController(BOT bot)
IUT2004BotController
UT2004Bot
before the GameBots2004 greets the bot even before
IUT2004BotController.prepareBot(UT2004Bot)
method.
NOTE: This is Pogamut's developers reserved method - do not override it and if you do, always use 'super' to call parent's initializeController.
initializeController
in interface IUT2004BotController<BOT extends UT2004Bot>
initializeController
in class UT2004BotController<BOT extends UT2004Bot>
public long getLogicInitializeTime()
IAgentLogic
IAgentLogic#initializeLogic()
method running time in millis.
getLogicInitializeTime
in interface IAgentLogic<LogicModule>
public long getLogicShutdownTime()
IAgentLogic
IAgentLogic.logicShutdown()
method running time in millis.
getLogicShutdownTime
in interface IAgentLogic<LogicModule>
public void logic()
IAgentLogic
LogicModule
or its descendant then
it is called periodically.
logic
in interface IAgentLogic<LogicModule>
public void logicInitialize(LogicModule logicModule)
IAgentLogic
IAgentLogic.logic()
invocation.
logicInitialize
in interface IAgentLogic<LogicModule>
public void logicShutdown()
IAgentLogic
LogicModule
is stopping to end the logic.
logicShutdown
in interface IAgentLogic<LogicModule>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |