Package jmri
Enum Timebase.ClockInitialRunState
- java.lang.Object
-
- java.lang.Enum<Timebase.ClockInitialRunState>
-
- jmri.Timebase.ClockInitialRunState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Timebase.ClockInitialRunState>
- Enclosing interface:
- Timebase
public static enum Timebase.ClockInitialRunState extends java.lang.Enum<Timebase.ClockInitialRunState>
Defines what to do with the fast clock when JMRI starts up.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DO_NOTHING
Does not change the clock when JMRI starts.DO_START
Changes the clock to running when JMRI starts.DO_STOP
Changes the clock to stopped when JMRI starts.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Timebase.ClockInitialRunState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Timebase.ClockInitialRunState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DO_STOP
public static final Timebase.ClockInitialRunState DO_STOP
Changes the clock to stopped when JMRI starts.
-
DO_START
public static final Timebase.ClockInitialRunState DO_START
Changes the clock to running when JMRI starts.
-
DO_NOTHING
public static final Timebase.ClockInitialRunState DO_NOTHING
Does not change the clock when JMRI starts.
-
-
Method Detail
-
values
public static Timebase.ClockInitialRunState[] 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 (Timebase.ClockInitialRunState c : Timebase.ClockInitialRunState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Timebase.ClockInitialRunState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-