cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes
Enum TraceColor

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

public enum TraceColor
extends Enum<TraceColor>

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
BLUE
           
CYAN
           
GREEN
           
PURPLE
           
RED
           
WHITE
           
YELLOW
           
 
Method Summary
 String getName()
          Note that this method is not static.
static TraceColor getType(String type)
          For each config type it checks if type matches one of kinds.
static TraceColor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TraceColor[] 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

RED

public static final TraceColor RED

YELLOW

public static final TraceColor YELLOW

GREEN

public static final TraceColor GREEN

CYAN

public static final TraceColor CYAN

WHITE

public static final TraceColor WHITE

BLUE

public static final TraceColor BLUE

PURPLE

public static final TraceColor PURPLE
Method Detail

values

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

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

valueOf

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

getName

public String getName()
Note that this method is not static.

Returns:
Returns color relevant to Actual ConfigType


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