Enum Class WsOutputs

java.lang.Object
java.lang.Enum<WsOutputs>
org.wildstang.sample.robot.WsOutputs
All Implemented Interfaces:
Serializable, Comparable<WsOutputs>, Constable, Outputs

public enum WsOutputs extends Enum<WsOutputs> implements 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.
  • Enum Constant Details

    • DRIVE1

      public static final WsOutputs DRIVE1
    • ANGLE1

      public static final WsOutputs ANGLE1
    • DRIVE2

      public static final WsOutputs DRIVE2
    • ANGLE2

      public static final WsOutputs ANGLE2
    • DRIVE3

      public static final WsOutputs DRIVE3
    • ANGLE3

      public static final WsOutputs ANGLE3
    • DRIVE4

      public static final WsOutputs DRIVE4
    • ANGLE4

      public static final WsOutputs ANGLE4
  • Method Details

    • values

      public static WsOutputs[] 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

      public static WsOutputs valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Returns the name mapped to the Output.
      Specified by:
      getName in interface Outputs
      Returns:
      Name mapped to the Output.
    • getConfig

      public OutputConfig getConfig()
      Returns the config of Output for the enumeration.
      Specified by:
      getConfig in interface Outputs
      Returns:
      OutputConfig of enumeration.
    • get

      public Output get()
      Returns the actual Output object from the OutputManager
      Returns:
      The corresponding output.