public enum TrafficLightSignal extends java.lang.Enum<TrafficLightSignal>
Enum Constant and Description |
---|
SIGNAL_GREEN
Car movement is allowed
|
SIGNAL_NONE
The default state for all stop lines.
|
SIGNAL_RED
Car movement is prohibited
|
SIGNAL_YELLOW
Car movement is prohibited like in
SIGNAL_RED . |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
Returns the color of this signal
|
static TrafficLightSignal |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrafficLightSignal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficLightSignal SIGNAL_RED
public static final TrafficLightSignal SIGNAL_YELLOW
SIGNAL_RED
.public static final TrafficLightSignal SIGNAL_GREEN
public static final TrafficLightSignal SIGNAL_NONE
SIGNAL_GREEN
.public static TrafficLightSignal[] values()
for (TrafficLightSignal c : TrafficLightSignal.values()) System.out.println(c);
public static TrafficLightSignal valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.awt.Color getColor()
Copyright © AnyLogic North America, LLC. All Rights Reserved.