nl.tudelft.goal.unreal.messages
Enum ConfigurationKey

Package class diagram package ConfigurationKey
java.lang.Object
  extended by java.lang.Enum<ConfigurationKey>
      extended by nl.tudelft.goal.unreal.messages.ConfigurationKey
All Implemented Interfaces:
Serializable, Comparable<ConfigurationKey>, Key

public enum ConfigurationKey
extends Enum<ConfigurationKey>
implements Key

List of valid parameter keys that can be used to initialize the environment.

Author:
M.P. Korstanje

Enum Constant Summary
BOT_CONTROLLER
          Class of the bot controller
BOT_SERVER
          Address of the server.
BOTS
          List of bots
CONTROL_SERVER
          Address of the server.
LOGLEVEL
          Log level used.
VISUALIZER_SERVER
          Address for the visualizer service.
 
Method Summary
 String getKey()
           
static ConfigurationKey valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigurationKey[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOTS

public static final ConfigurationKey BOTS
List of bots


BOT_SERVER

public static final ConfigurationKey BOT_SERVER
Address of the server. Should be of the form protocol//host:port


CONTROL_SERVER

public static final ConfigurationKey CONTROL_SERVER
Address of the server. Should be of the form protocol//host:port


LOGLEVEL

public static final ConfigurationKey LOGLEVEL
Log level used. Controls how many messages are displayed on the console. Valid log levels are any from Level.


VISUALIZER_SERVER

public static final ConfigurationKey VISUALIZER_SERVER
Address for the visualizer service.


BOT_CONTROLLER

public static final ConfigurationKey BOT_CONTROLLER
Class of the bot controller

Method Detail

values

public static ConfigurationKey[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ConfigurationKey c : ConfigurationKey.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ConfigurationKey valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getKey

public String getKey()
Specified by:
getKey in interface Key


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