Enum Diagram.Command
- java.lang.Object
-
- java.lang.Enum<Diagram.Command>
-
- org.opentrafficsim.trafficcontrol.trafcod.Diagram.Command
-
- All Implemented Interfaces:
Serializable
,Comparable<Diagram.Command>
- Enclosing class:
- Diagram
static enum Diagram.Command extends Enum<Diagram.Command>
Commands used in RouteStep.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Diagram.Command
valueOf(String name)
Returns the enum constant of this type with the specified name.static Diagram.Command[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_OP
public static final Diagram.Command NO_OP
No operation.
-
IF
public static final Diagram.Command IF
If.
-
ELSE
public static final Diagram.Command ELSE
Else.
-
ELSE_IF
public static final Diagram.Command ELSE_IF
Else if.
-
END_IF
public static final Diagram.Command END_IF
End if.
-
STOP_LINE
public static final Diagram.Command STOP_LINE
Stop line.
-
ICON
public static final Diagram.Command ICON
Icon (bus, bicycle symbol).
-
STOP_LINE_AND_ICON
public static final Diagram.Command STOP_LINE_AND_ICON
Stop line AND icon.
-
-
Method Detail
-
values
public static Diagram.Command[] 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 (Diagram.Command c : Diagram.Command.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Diagram.Command 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 nameNullPointerException
- if the argument is null
-
-