javabot
Class PogamutJBotSupport

Package class diagram package PogamutJBotSupport
java.lang.Object
  extended by javabot.PogamutJBotSupport

public class PogamutJBotSupport
extends Object

Layer that takes care of incoming and outgoing requests on defcon.

Author:
Radek 'Black_Hand' Pibil

Field Summary
static cz.cuni.amis.utils.flag.Flag<Boolean> botIsRunning
          Leave as not-immutable for testing purposes!
static GameInfo gameInfo
           
static String PROPERTY_CLASS
           
static String PROPERTY_START_TIMEOUT_SECS
           
 
Constructor Summary
PogamutJBotSupport()
           
 
Method Summary
static void addCommand(DefConCommand command)
           
static void addEvent(JBot.EventData data)
          Called from JBot.addEvent().
static void addQuery(SyncMethodExecContainer container)
           
static DefConAgent<?> getBot()
           
static ActExecutor getDefConActExecutor()
           
static List<IDefConBasicEvent> getEvents()
           
static List<IWorldChangeEvent> getUnitsUpdate()
           
static boolean initialise(String[][] commandLineOptions)
          Called from JBot.initialise().
static void logGame(Level level, String msg)
          Formats and send a log message during GAME phase.
static void logGameException(Throwable e)
           
static void logInit(Level level, String msg)
          Formats and send a log message during INIT phase.
static void logInitException(Throwable e)
           
static void setName(String name)
           
static boolean update()
          Called from JBot.update().
static void writeToConsole(String logLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_CLASS

public static final String PROPERTY_CLASS
See Also:
Constant Field Values

PROPERTY_START_TIMEOUT_SECS

public static final String PROPERTY_START_TIMEOUT_SECS
See Also:
Constant Field Values

botIsRunning

public static cz.cuni.amis.utils.flag.Flag<Boolean> botIsRunning
Leave as not-immutable for testing purposes!


gameInfo

public static GameInfo gameInfo
Constructor Detail

PogamutJBotSupport

public PogamutJBotSupport()
Method Detail

getBot

public static DefConAgent<?> getBot()

logInitException

public static void logInitException(Throwable e)

logGameException

public static void logGameException(Throwable e)

logInit

public static void logInit(Level level,
                           String msg)
Formats and send a log message during INIT phase.

Parameters:
level -
msg -

logGame

public static void logGame(Level level,
                           String msg)
Formats and send a log message during GAME phase.

Parameters:
level -
msg -

initialise

public static boolean initialise(String[][] commandLineOptions)
Called from JBot.initialise().

Parameters:
commandLineOptions -
Returns:

addEvent

public static void addEvent(JBot.EventData data)
Called from JBot.addEvent().

Parameters:
data -

update

public static boolean update()
Called from JBot.update().

Returns:

getUnitsUpdate

public static List<IWorldChangeEvent> getUnitsUpdate()

addQuery

public static void addQuery(SyncMethodExecContainer container)

addCommand

public static void addCommand(DefConCommand command)

getEvents

public static List<IDefConBasicEvent> getEvents()

writeToConsole

public static void writeToConsole(String logLine)

getDefConActExecutor

public static ActExecutor getDefConActExecutor()

setName

public static void setName(String name)


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