Enum WsRelayState
- java.lang.Object
-
- java.lang.Enum<WsRelayState>
-
- org.wildstang.hardware.roborio.outputs.WsRelayState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WsRelayState>
public enum WsRelayState extends java.lang.Enum<WsRelayState>
Represents possible relay states.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RELAY_FORWARD
RELAY_OFF
RELAY_ON
RELAY_REVERSE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WsRelayState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WsRelayState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RELAY_OFF
public static final WsRelayState RELAY_OFF
-
RELAY_ON
public static final WsRelayState RELAY_ON
-
RELAY_FORWARD
public static final WsRelayState RELAY_FORWARD
-
RELAY_REVERSE
public static final WsRelayState RELAY_REVERSE
-
-
Method Detail
-
values
public static WsRelayState[] 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 (WsRelayState c : WsRelayState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WsRelayState 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
-
-