cz.cuni.amis.pogamut.sposh.context
Class USAR2004Behaviour<BOT extends cz.cuni.amis.pogamut.usar2004.agent.USAR2004Bot>

Package class diagram package USAR2004Behaviour
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.JavaBehaviour<BOT>
      extended by cz.cuni.amis.pogamut.sposh.context.USAR2004Behaviour<BOT>
Type Parameters:
BOT -

public class USAR2004Behaviour<BOT extends cz.cuni.amis.pogamut.usar2004.agent.USAR2004Bot>
extends cz.cuni.amis.pogamut.sposh.JavaBehaviour<BOT>

For old version of POSH - obsolete, not used. Now Context is used in combination with senses and actions.

Author:
vejmanm

Field Summary
protected  cz.cuni.amis.pogamut.base.communication.command.IAct act
          Shortcut for the UT2004BotModuleController#getAct().
protected  cz.cuni.amis.pogamut.base.communication.worldview.listener.annotation.AnnotationListenerRegistrator listenerRegistrator
          Listener registrator that probes declared methods for the presence of EventListener, ObjectClassEventListener, ObjectClassListener, ObjectEventListener and ObjectListener annotations and automatically registers them as listeners on a specific events.
protected  cz.cuni.amis.pogamut.base.utils.logging.LogCategory log
          Alias for user's log.
protected  Random random
          Random number generator that is usually useful to have during decision making.
protected  cz.cuni.amis.pogamut.base.utils.logging.LogCategory user
          Deprecated. use UT2004BotController#log instead
protected  cz.cuni.amis.pogamut.base.communication.worldview.IWorldView world
          Shortcut for the UT2004BotModuleController#getWorldView().
 
Fields inherited from class cz.cuni.amis.pogamut.sposh.JavaBehaviour
bot
 
Constructor Summary
USAR2004Behaviour(String name, BOT bot)
           
 
Method Summary
 cz.cuni.amis.pogamut.base.communication.command.IAct getAct()
           
 cz.cuni.amis.pogamut.base.communication.worldview.IWorldView getWorldView()
           
protected  void initializeBehaviour(BOT bot)
          Called after the construction of the UT2004Behaviour before the GameBots2004 greets the bot even before UT2004Behaviour#prepareBehaviour(UT2004Bot) method.
protected  void initializeListeners(BOT bot)
          Initializes UT2004Behaviour#listenerRegistrator and calls AnnotationListenerRegistrator.addListeners() method to probe all declared methods for event-annotation presence.
protected  void initializeModules(BOT bot)
          Initializes memory/command modules of the bot.
protected  void prepareBehaviour(BOT bot)
          Called after the behaviour construction to initialize user's data structures.
 
Methods inherited from class cz.cuni.amis.pogamut.sposh.JavaBehaviour
doNothing, fail, getActions, getBot, getName, getSenses, logicAfterPlan, logicBeforePlan, succeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

protected Random random
Random number generator that is usually useful to have during decision making.


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.


listenerRegistrator

protected cz.cuni.amis.pogamut.base.communication.worldview.listener.annotation.AnnotationListenerRegistrator listenerRegistrator
Listener registrator that probes declared methods for the presence of EventListener, ObjectClassEventListener, ObjectClassListener, ObjectEventListener and ObjectListener annotations and automatically registers them as listeners on a specific events.

Note that this registrator is usable for 'this' object only! It will work only for 'this' object.


world

protected cz.cuni.amis.pogamut.base.communication.worldview.IWorldView world
Shortcut for the UT2004BotModuleController#getWorldView().


act

protected cz.cuni.amis.pogamut.base.communication.command.IAct act
Shortcut for the UT2004BotModuleController#getAct().

Constructor Detail

USAR2004Behaviour

public USAR2004Behaviour(String name,
                         BOT bot)
Method Detail

initializeBehaviour

protected void initializeBehaviour(BOT bot)
Called after the construction of the UT2004Behaviour before the GameBots2004 greets the bot even before UT2004Behaviour#prepareBehaviour(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 initializeBehaviour.


initializeListeners

protected void initializeListeners(BOT bot)
Initializes UT2004Behaviour#listenerRegistrator and calls AnnotationListenerRegistrator.addListeners() method to probe all declared methods for event-annotation presence.

Parameters:
bot -

initializeModules

protected void initializeModules(BOT bot)
Initializes memory/command modules of the bot.

Parameters:
bot -

prepareBehaviour

protected void prepareBehaviour(BOT bot)
Called after the behaviour construction to initialize user's data structures.

Parameters:
bot -

getWorldView

public cz.cuni.amis.pogamut.base.communication.worldview.IWorldView getWorldView()

getAct

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


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