com.azalient.apo.enums
Enum SignalColour
java.lang.Object
java.lang.Enum<SignalColour>
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
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
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()