Class SensorPacket

java.lang.Object
com.blukii.sdk.config.datatype.SensorPacket
Direct Known Subclasses:
SensorRecordingHeader, SensorTransferFinish, SensorValue

public class SensorPacket extends Object
This class represents data type SensorPacket
  • Constructor Details

    • SensorPacket

      public SensorPacket()
  • Method Details

    • getSensorType

      public SensorType getSensorType()
      Gets the sensor type.
      Returns:
      sensor type.
    • setSensorType

      public void setSensorType(SensorType sensorType)
      Sets the sensor type.
      Parameters:
      sensorType - sensor type.
    • getRecordingIndex

      public int getRecordingIndex()
      Gets the recording index.
      Returns:
      recording index.
    • setRecordingIndex

      public void setRecordingIndex(int recordingIndex)
      Sets the recording index.
      Parameters:
      recordingIndex - recording index.
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object
    • validate

      public int validate()
      Validates the values contained in this object.

      This can be used when you create an object, to verify the values set.

      Returns:
      a state from Validation