Enum SCPCommand

java.lang.Object
java.lang.Enum<SCPCommand>
uk.ac.manchester.spinnaker.messages.scp.SCPCommand
All Implemented Interfaces:
Serializable, Comparable<SCPCommand>, CommandCode

public enum SCPCommand
extends Enum<SCPCommand>
implements CommandCode
The SCP Command codes.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static SCPCommand[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SCPCommand valueOf​(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public static SCPCommand get​(short value)
      Convert an encoded value into an enum element.
      Parameters:
      value - The value to convert
      Returns:
      The enum element
    • getValue

      public short getValue()
      Description copied from interface: CommandCode
      Get the value of this command.
      Specified by:
      getValue in interface CommandCode
      Returns:
      The encoded value.