Enum Class DeviceCommand

java.lang.Object
java.lang.Enum<DeviceCommand>
pl.polsl.rtsa.model.DeviceCommand
All Implemented Interfaces:
Serializable, Comparable<DeviceCommand>, Constable

public enum DeviceCommand extends Enum<DeviceCommand>
Represents the commands that can be sent to the hardware device.

These commands control the acquisition state and sampling parameters of the connected signal analyzer.

  • Enum Constant Details

    • START_ACQUISITION

      public static final DeviceCommand START_ACQUISITION
      Starts the data acquisition process.
    • STOP_ACQUISITION

      public static final DeviceCommand STOP_ACQUISITION
      Stops the data acquisition process.
    • SET_RATE_1KHZ

      public static final DeviceCommand SET_RATE_1KHZ
      Sets the sampling rate to 1 kHz.
    • SET_RATE_10KHZ

      public static final DeviceCommand SET_RATE_10KHZ
      Sets the sampling rate to 10 kHz.
    • SET_RATE_20KHZ

      public static final DeviceCommand SET_RATE_20KHZ
      Sets the sampling rate to 20 kHz.
  • Constructor Details

    • DeviceCommand

      private DeviceCommand()
  • Method Details

    • values

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