TUM CCSM Commons

edu.tum.cs.commons.assessment
Enum ETrafficLightColor

java.lang.Object
  extended by java.lang.Enum<ETrafficLightColor>
      extended by edu.tum.cs.commons.assessment.ETrafficLightColor
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ETrafficLightColor>

public enum ETrafficLightColor
extends java.lang.Enum<ETrafficLightColor>

Enum for traffic light colors. Note that the order is relevant: The first Color (RED) is considered the most dominant color (see Assessment.getDominantColor()).

Version:
$Rev: 26283 $
Author:
Benjamin Hummel, $Author: juergens $
Rating:
GREEN Hash: 3EF80A03FF6E5A81B2F0601685B19EE2

Enum Constant Summary
GREEN
          Green signals the absence of errors or correctness.
RED
          Red signals errors or incomleteness.
UNKNOWN
          This is used if no information is available.
YELLOW
          Yellow signals warning or lack of control.
 
Method Summary
static ETrafficLightColor valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ETrafficLightColor[] 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 ETrafficLightColor RED
Red signals errors or incomleteness.


YELLOW

public static final ETrafficLightColor YELLOW
Yellow signals warning or lack of control.


GREEN

public static final ETrafficLightColor GREEN
Green signals the absence of errors or correctness.


UNKNOWN

public static final ETrafficLightColor UNKNOWN
This is used if no information is available.

Method Detail

values

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

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

valueOf

public static ETrafficLightColor valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

TUM CCSM Commons

TUM CCSM Commons - 2.7