cz.cuni.amis.pogamut.usar2004.samples
Class AerialVehicle
java.lang.Object
cz.cuni.amis.pogamut.usar2004.agent.USAR2004BotController<BOT>
cz.cuni.amis.pogamut.usar2004.agent.module.logic.USAR2004BotLogicController<USAR2004Bot>
cz.cuni.amis.pogamut.usar2004.samples.AerialVehicle
- All Implemented Interfaces:
- cz.cuni.amis.pogamut.base.agent.module.IAgentLogic<cz.cuni.amis.pogamut.base.agent.module.LogicModule>, IUSAR2004BotController<USAR2004Bot>, IUSAR2004BotLogicController<USAR2004Bot,cz.cuni.amis.pogamut.base.agent.module.LogicModule>
public class AerialVehicle
- extends USAR2004BotLogicController<USAR2004Bot>
This robot is designed for the map DM-TallTestWorld_250 and is based on logic
bot controller
- Author:
- vejmanm
Method Summary |
void |
initializeController(USAR2004Bot bot)
Called during the construction of the UT2004Bot before the GameBots2004 greets the bot even before
IUT2004BotController#prepareBot(UT2004Bot) method. |
void |
logic()
this method is triggered by receipt of STA message. |
static void |
main(String[] args)
|
void |
prepareBot(USAR2004Bot bot)
Initialization of modules used within this robot. |
void |
robotInitialized(NfoMessage nfom)
Method triggered after Game is initialized and STARTPOSES obtained. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AerialVehicle
public AerialVehicle()
robotInitialized
public void robotInitialized(NfoMessage nfom)
- Method triggered after Game is initialized and STARTPOSES obtained. Tt
will spawn the robot into the environment.
- Specified by:
robotInitialized
in interface IUSAR2004BotController<USAR2004Bot>
- Overrides:
robotInitialized
in class USAR2004BotController<USAR2004Bot>
- Parameters:
nfom
- NfoMessge containing STARTPOSES
initializeController
public void initializeController(USAR2004Bot 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<USAR2004Bot>
- Overrides:
initializeController
in class USAR2004BotLogicController<USAR2004Bot>
logic
public void logic()
throws cz.cuni.amis.utils.exception.PogamutException
- this method is triggered by receipt of STA message. This is where all
behaviour is controlled
- Specified by:
logic
in interface cz.cuni.amis.pogamut.base.agent.module.IAgentLogic<cz.cuni.amis.pogamut.base.agent.module.LogicModule>
- Overrides:
logic
in class USAR2004BotLogicController<USAR2004Bot>
- Throws:
cz.cuni.amis.utils.exception.PogamutException
prepareBot
public void prepareBot(USAR2004Bot bot)
- Initialization of modules used within this robot.
- Specified by:
prepareBot
in interface IUSAR2004BotController<USAR2004Bot>
- Overrides:
prepareBot
in class USAR2004BotController<USAR2004Bot>
- Parameters:
bot
- Necessary parameter for hooking listeners and for sending
commands
main
public static void main(String[] args)
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.