cz.cuni.amis.pogamut.usar2004.agent
Class USAR2004BotController<BOT extends USAR2004Bot>

Package class diagram package USAR2004BotController
java.lang.Object
  extended by cz.cuni.amis.pogamut.usar2004.agent.USAR2004BotController<BOT>
All Implemented Interfaces:
IUSAR2004BotController<BOT>
Direct Known Subclasses:
P2DX, USAR2004BotLogicController, USAR2004TestBot

public class USAR2004BotController<BOT extends USAR2004Bot>
extends Object
implements IUSAR2004BotController<BOT>


Field Summary
protected  BOT bot
          Instance of the bot we're controlling.
protected  cz.cuni.amis.pogamut.base.utils.logging.LogCategory log
          Alias for user's log.
protected  cz.cuni.amis.pogamut.base.utils.logging.LogCategory user
          Deprecated. use UT2004BotController#log instead
static String USER_LOG_CATEGORY_ID
          Name of the log category of the user log.
 
Constructor Summary
USAR2004BotController()
           
 
Method Summary
 cz.cuni.amis.pogamut.base.communication.command.IAct getAct()
           
 cz.cuni.amis.pogamut.base.utils.logging.LogCategory getLog()
          Returns user logger.
 cz.cuni.amis.pogamut.base3d.worldview.IVisionWorldView getWorldView()
           
 void initializeController(BOT bot)
          Called during the construction of the UT2004Bot before the GameBots2004 greets the bot even before IUT2004BotController#prepareBot(UT2004Bot) method.
 void prepareBot(USAR2004Bot bot)
          Called during the construction of the UT2004Bot before the GameBots2004 greets the bot.
 void robotInitialized(NfoMessage nfoMessage)
          Called when first NFO message arrives.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_LOG_CATEGORY_ID

public static final String USER_LOG_CATEGORY_ID
Name of the log category of the user log.

See Also:
Constant Field Values

bot

protected BOT extends USAR2004Bot bot
Instance of the bot we're controlling.


user

protected cz.cuni.amis.pogamut.base.utils.logging.LogCategory user
Deprecated. use UT2004BotController#log instead
User log - it's log-level is initially set to Level.ALL.


log

protected cz.cuni.amis.pogamut.base.utils.logging.LogCategory log
Alias for user's log.

Constructor Detail

USAR2004BotController

public USAR2004BotController()
Method Detail

initializeController

public void initializeController(BOT bot)
Description copied from interface: IUSAR2004BotController
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 IUSAR2004BotController<BOT extends USAR2004Bot>

prepareBot

public void prepareBot(USAR2004Bot bot)
Description copied from interface: IUSAR2004BotController
Called during the construction of the UT2004Bot before the GameBots2004 greets the bot.

Specified by:
prepareBot in interface IUSAR2004BotController<BOT extends USAR2004Bot>

robotInitialized

public void robotInitialized(NfoMessage nfoMessage)
Description copied from interface: IUSAR2004BotController
Called when first NFO message arrives.

Specified by:
robotInitialized in interface IUSAR2004BotController<BOT extends USAR2004Bot>

getWorldView

public cz.cuni.amis.pogamut.base3d.worldview.IVisionWorldView getWorldView()

getAct

public cz.cuni.amis.pogamut.base.communication.command.IAct getAct()

getLog

public cz.cuni.amis.pogamut.base.utils.logging.LogCategory getLog()
Returns user logger. This call is equivalent to bot.getLogger().getCategory(USER_LOG_ID).

Returns:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.