cz.cuni.amis.pogamut.usar2004.agent.module.datatypes
Enum ConfigType

Package class diagram package ConfigType
java.lang.Object
  extended by java.lang.Enum<ConfigType>
      extended by cz.cuni.amis.pogamut.usar2004.agent.module.datatypes.ConfigType
All Implemented Interfaces:
Serializable, Comparable<ConfigType>

public enum ConfigType
extends Enum<ConfigType>

List of all Robot config Types. Each type can possibly represent more kinds of config of same type. For each enum record, there exists relevant Class which can be returned on demand.

Author:
vejmanm

Enum Constant Summary
AERIAL_VEHICLE
           
EFFECTER
           
GROUND_VEHICLE
           
LEGGED_ROBOT
           
MISSION_PACKAGE
           
NAUTIC_VEHICLE
           
SENSOR
           
 
Method Summary
 Class getModuleClass()
          Notice that this method is not static.
static ConfigType getType(String type)
          For each config type it checks if type matches one of kinds.
static ConfigType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigType[] 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

GROUND_VEHICLE

public static final ConfigType GROUND_VEHICLE

LEGGED_ROBOT

public static final ConfigType LEGGED_ROBOT

NAUTIC_VEHICLE

public static final ConfigType NAUTIC_VEHICLE

AERIAL_VEHICLE

public static final ConfigType AERIAL_VEHICLE

SENSOR

public static final ConfigType SENSOR

EFFECTER

public static final ConfigType EFFECTER

MISSION_PACKAGE

public static final ConfigType MISSION_PACKAGE
Method Detail

values

public static ConfigType[] 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 (ConfigType c : ConfigType.values())
    System.out.println(c);

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

valueOf

public static ConfigType 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

getType

public static ConfigType getType(String type)
For each config type it checks if type matches one of kinds. If so, it returns relevant ConfigType. Notice that this method is static. If nothing matches, it returns SENSOR

Parameters:
type - String representation or kind of Config
Returns:
Returns relevant ConfigType value to the String type

getModuleClass

public Class getModuleClass()
Notice that this method is not static.

Returns:
Returns class relevant to Actual ConfigType


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