Enum Flags
- java.lang.Object
-
- java.lang.Enum<Flags>
-
- org.opentrafficsim.trafficcontrol.trafcod.Flags
-
- All Implemented Interfaces:
Serializable
,Comparable<Flags>
enum Flags extends Enum<Flags>
Flags of a TrafCOD variable.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHANGED
Variable has just changed value.CONFLICT_GROUP
Variable identifies the currently active conflict group.END
Variable becomes inactive.HAS_END_RULE
Variable has an end rule.HAS_START_RULE
Variable has a start rule.INITED
Variable must be initialized to 1 at start of control program.IS_DETECTOR
Variable is a detector.IS_OUTPUT
Variable is an output.IS_TIMER
Variable is a timer.START
Variable becomes active.TIMEREXPIRED
Timer has just expired.TRACED
Variable is traced; all changes must be printed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Flags
valueOf(String name)
Returns the enum constant of this type with the specified name.static Flags[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START
public static final Flags START
Variable becomes active.
-
END
public static final Flags END
Variable becomes inactive.
-
TIMEREXPIRED
public static final Flags TIMEREXPIRED
Timer has just expired.
-
CHANGED
public static final Flags CHANGED
Variable has just changed value.
-
IS_TIMER
public static final Flags IS_TIMER
Variable is a timer.
-
IS_DETECTOR
public static final Flags IS_DETECTOR
Variable is a detector.
-
HAS_START_RULE
public static final Flags HAS_START_RULE
Variable has a start rule.
-
HAS_END_RULE
public static final Flags HAS_END_RULE
Variable has an end rule.
-
IS_OUTPUT
public static final Flags IS_OUTPUT
Variable is an output.
-
INITED
public static final Flags INITED
Variable must be initialized to 1 at start of control program.
-
TRACED
public static final Flags TRACED
Variable is traced; all changes must be printed.
-
CONFLICT_GROUP
public static final Flags CONFLICT_GROUP
Variable identifies the currently active conflict group.
-
-
Method Detail
-
values
public static Flags[] 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 (Flags c : Flags.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Flags 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
-
-