cz.cuni.amis.pogamut.ut2004.bot.impl
Class UT2004BotLogicController<BOT extends UT2004Bot>

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController<BOT>
      extended by cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController<BOT>
All Implemented Interfaces:
IAgentLogic<LogicModule>, IUT2004BotController<BOT>, IUT2004BotLogicController<BOT,LogicModule>
Direct Known Subclasses:
UT2004BotModuleController

public class UT2004BotLogicController<BOT extends UT2004Bot>
extends UT2004BotController<BOT>
implements IUT2004BotLogicController<BOT,LogicModule>


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

logicModule

protected SyncUT2004BotLogic logicModule
Constructor Detail

UT2004BotLogicController

public UT2004BotLogicController()
Method Detail

initializeController

public void initializeController(BOT bot)
Description copied from interface: IUT2004BotController
Called during the construction of the 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.

Specified by:
initializeController in interface IUT2004BotController<BOT extends UT2004Bot>
Overrides:
initializeController in class UT2004BotController<BOT extends UT2004Bot>

getLogicInitializeTime

public long getLogicInitializeTime()
Description copied from interface: IAgentLogic
Returns upper-estimation of IAgentLogic#initializeLogic() method running time in millis.

Specified by:
getLogicInitializeTime in interface IAgentLogic<LogicModule>
Returns:

getLogicShutdownTime

public long getLogicShutdownTime()
Description copied from interface: IAgentLogic
Returns upper-estimation of IAgentLogic.logicShutdown() method running time in millis.

Specified by:
getLogicShutdownTime in interface IAgentLogic<LogicModule>
Returns:

logic

public void logic()
Description copied from interface: IAgentLogic
Called to perform the logic of the agent. If performed by the LogicModule or its descendant then it is called periodically.

Specified by:
logic in interface IAgentLogic<LogicModule>

logicInitialize

public void logicInitialize(LogicModule logicModule)
Description copied from interface: IAgentLogic
Called when the agent is started and just before the first IAgentLogic.logic() invocation.

Specified by:
logicInitialize in interface IAgentLogic<LogicModule>

logicShutdown

public void logicShutdown()
Description copied from interface: IAgentLogic
Called whenever the LogicModule is stopping to end the logic.

Specified by:
logicShutdown in interface IAgentLogic<LogicModule>