com.azalient.apo.enums
Enum SignalColour

java.lang.Object
  extended by java.lang.Enum<SignalColour>
      extended by com.azalient.apo.enums.SignalColour
All Implemented Interfaces:
Serializable, Comparable<SignalColour>

public enum SignalColour
extends Enum<SignalColour>

A reduced set of signal values (compared to Signal) used for external signal controllers


Enum Constant Summary
GREEN
           
NONE
           
OFF
           
RED
           
RED_YELLOW
           
YELLOW
           
 
Method Summary
 Color color()
           
 String description()
           
static SignalColour fromSP38value(int i)
           
 int rgb()
           
 int toSP38value()
           
static SignalColour valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SignalColour[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OFF

public static final SignalColour OFF

GREEN

public static final SignalColour GREEN

YELLOW

public static final SignalColour YELLOW

RED

public static final SignalColour RED

RED_YELLOW

public static final SignalColour RED_YELLOW

NONE

public static final SignalColour NONE
Method Detail

values

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

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

valueOf

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

toSP38value

public int toSP38value()

description

public String description()

fromSP38value

public static SignalColour fromSP38value(int i)

rgb

public int rgb()

color

public Color color()