Package jmri.jmrit.logix
Enum OBlock.OBlockStatus
- java.lang.Object
-
- java.lang.Enum<OBlock.OBlockStatus>
-
- jmri.jmrit.logix.OBlock.OBlockStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OBlock.OBlockStatus>
- Enclosing class:
- OBlock
public static enum OBlock.OBlockStatus extends java.lang.Enum<OBlock.OBlockStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Allocated
Dark
Occupied
OutOfService
Running
TrackError
Unoccupied
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OBlock.OBlockStatus
getByDescr(java.lang.String descr)
static OBlock.OBlockStatus
getByName(java.lang.String name)
java.lang.String
getDescr()
java.lang.String
getName()
int
getStatus()
static OBlock.OBlockStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OBlock.OBlockStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Unoccupied
public static final OBlock.OBlockStatus Unoccupied
-
Occupied
public static final OBlock.OBlockStatus Occupied
-
Allocated
public static final OBlock.OBlockStatus Allocated
-
Running
public static final OBlock.OBlockStatus Running
-
OutOfService
public static final OBlock.OBlockStatus OutOfService
-
Dark
public static final OBlock.OBlockStatus Dark
-
TrackError
public static final OBlock.OBlockStatus TrackError
-
-
Method Detail
-
values
public static OBlock.OBlockStatus[] 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 (OBlock.OBlockStatus c : OBlock.OBlockStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OBlock.OBlockStatus 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
-
getStatus
public int getStatus()
-
getName
public java.lang.String getName()
-
getDescr
public java.lang.String getDescr()
-
getByName
public static OBlock.OBlockStatus getByName(java.lang.String name)
-
getByDescr
public static OBlock.OBlockStatus getByDescr(java.lang.String descr)
-
-