nl.tudelft.goal.unreal.messages
Class Configuration

Package class diagram package Configuration
java.lang.Object
  extended by nl.tudelft.goal.unreal.messages.Configuration

public class Configuration
extends Object

Describes the configuration for the environment. This configuration is provided through the init command.

Author:
M.P. Korstanje

Field Summary
static String BOT_SERVER
           
static String CONTROL_SERVER
           
static String DEFAULT_BOT_NAME
           
static Level DEFAULT_LOG_LEVEL
           
 
Constructor Summary
Configuration()
           
 
Method Summary
 void assignDefaults(Configuration configuration)
           
 Class<? extends IUT2004BotController> getBotControllerClass()
           
 List<BotParameters> getBots()
           
 URI getBotServer()
           
 String getBotServerHost()
           
 int getBotServerPort()
           
 URI getControlServer()
           
 String getControlServerHost()
           
 int getControlServerPort()
           
 String getDefaultBotName()
           
static Configuration getDefaults()
           
 Level getLogLevel()
           
 URI getVisualizer()
           
 void setBotControllerClass(Class<? extends IUT2004BotController> botControllerClass)
           
 void setBots(List<BotParameters> bots)
           
 void setBotServer(URI botServer)
           
 void setControlServer(URI controlServer)
           
 Configuration setLogLevel(Level level)
           
 void setVisualizer(URI visualizer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOG_LEVEL

public static final Level DEFAULT_LOG_LEVEL

DEFAULT_BOT_NAME

public static final String DEFAULT_BOT_NAME
See Also:
Constant Field Values

CONTROL_SERVER

public static final String CONTROL_SERVER
See Also:
Constant Field Values

BOT_SERVER

public static final String BOT_SERVER
See Also:
Constant Field Values
Constructor Detail

Configuration

public Configuration()
Method Detail

getBots

public List<BotParameters> getBots()

setBots

public void setBots(List<BotParameters> bots)

getVisualizer

public URI getVisualizer()

setVisualizer

public void setVisualizer(URI visualizer)

getBotServer

public URI getBotServer()

setBotServer

public void setBotServer(URI botServer)

getControlServer

public URI getControlServer()

setControlServer

public void setControlServer(URI controlServer)

setLogLevel

public Configuration setLogLevel(Level level)

getLogLevel

public Level getLogLevel()

getDefaultBotName

public String getDefaultBotName()

getBotServerPort

public int getBotServerPort()
Returns:
The port bot server, or -1 if the port is undefined

getBotServerHost

public String getBotServerHost()
Returns:
The host of the bot server, or null if the server is undefined

getDefaults

public static Configuration getDefaults()

assignDefaults

public void assignDefaults(Configuration configuration)

getBotControllerClass

public Class<? extends IUT2004BotController> getBotControllerClass()

setBotControllerClass

public void setBotControllerClass(Class<? extends IUT2004BotController> botControllerClass)

getControlServerPort

public int getControlServerPort()

getControlServerHost

public String getControlServerHost()


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