Package jmri.jmrit.logix
Enum ThrottleSetting.Command
- java.lang.Object
-
- java.lang.Enum<ThrottleSetting.Command>
-
- jmri.jmrit.logix.ThrottleSetting.Command
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ThrottleSetting.Command>
- Enclosing class:
- ThrottleSetting
public static enum ThrottleSetting.Command extends java.lang.Enum<ThrottleSetting.Command>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FKEY
FORWARD
LATCHF
NOOP
RUN_WARRANT
SET_MEMORY
SET_SENSOR
SPEED
SPEEDSTEP
WAIT_SENSOR
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
_bundleKey
(package private) int
_command
(package private) boolean
_hasBlock
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIntId()
(package private) boolean
hasBlockName()
java.lang.String
toString()
static ThrottleSetting.Command
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ThrottleSetting.Command[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPEED
public static final ThrottleSetting.Command SPEED
-
FORWARD
public static final ThrottleSetting.Command FORWARD
-
FKEY
public static final ThrottleSetting.Command FKEY
-
LATCHF
public static final ThrottleSetting.Command LATCHF
-
SET_SENSOR
public static final ThrottleSetting.Command SET_SENSOR
-
WAIT_SENSOR
public static final ThrottleSetting.Command WAIT_SENSOR
-
RUN_WARRANT
public static final ThrottleSetting.Command RUN_WARRANT
-
NOOP
public static final ThrottleSetting.Command NOOP
-
SPEEDSTEP
public static final ThrottleSetting.Command SPEEDSTEP
-
SET_MEMORY
public static final ThrottleSetting.Command SET_MEMORY
-
-
Field Detail
-
_command
int _command
-
_hasBlock
boolean _hasBlock
-
_bundleKey
java.lang.String _bundleKey
-
-
Method Detail
-
values
public static ThrottleSetting.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 (ThrottleSetting.Command c : ThrottleSetting.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 ThrottleSetting.Command 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
-
getIntId
public int getIntId()
-
hasBlockName
boolean hasBlockName()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ThrottleSetting.Command>
-
-