Package org.wildstang.sample.robot
Enum Class WsOutputs
- All Implemented Interfaces:
Serializable,Comparable<WsOutputs>,Constable,Outputs
Output mappings are stored here.
Below each Motor, PWM, Digital Output, Solenoid, and Relay is enumerated with their appropriated IDs.
The enumeration includes a name, output type, and output config object.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the actual Output object from the OutputManagerReturns the config of Output for the enumeration.getName()Returns the name mapped to the Output.static WsOutputsReturns the enum constant of this class with the specified name.static WsOutputs[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRIVE1
-
ANGLE1
-
DRIVE2
-
ANGLE2
-
DRIVE3
-
ANGLE3
-
DRIVE4
-
ANGLE4
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Returns the name mapped to the Output. -
getConfig
Returns the config of Output for the enumeration. -
get
Returns the actual Output object from the OutputManager- Returns:
- The corresponding output.
-