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 SummaryEnum Constants Enum Constant Description AllocatedDarkOccupiedOutOfServiceRunningTrackErrorUnoccupied
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OBlock.OBlockStatusgetByDescr(java.lang.String descr)static OBlock.OBlockStatusgetByName(java.lang.String name)java.lang.StringgetDescr()java.lang.StringgetName()intgetStatus()static OBlock.OBlockStatusvalueOf(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- 
Unoccupiedpublic static final OBlock.OBlockStatus Unoccupied 
 - 
Occupiedpublic static final OBlock.OBlockStatus Occupied 
 - 
Allocatedpublic static final OBlock.OBlockStatus Allocated 
 - 
Runningpublic static final OBlock.OBlockStatus Running 
 - 
OutOfServicepublic static final OBlock.OBlockStatus OutOfService 
 - 
Darkpublic static final OBlock.OBlockStatus Dark 
 - 
TrackErrorpublic static final OBlock.OBlockStatus TrackError 
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- java.lang.NullPointerException- if the argument is null
 
 - 
getStatuspublic int getStatus() 
 - 
getNamepublic java.lang.String getName() 
 - 
getDescrpublic java.lang.String getDescr() 
 - 
getByNamepublic static OBlock.OBlockStatus getByName(java.lang.String name) 
 - 
getByDescrpublic static OBlock.OBlockStatus getByDescr(java.lang.String descr) 
 
- 
 
-