Package com.blukii.sdk.config.datatype
Class SensorPacket
java.lang.Object
com.blukii.sdk.config.datatype.SensorPacket
- Direct Known Subclasses:
SensorRecordingHeader,SensorTransferFinish,SensorValue
This class represents data type
SensorPacket-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets the recording index.Gets the sensor type.voidsetRecordingIndex(int recordingIndex) Sets the recording index.voidsetSensorType(SensorType sensorType) Sets the sensor type.toString()intvalidate()Validates the values contained in this object.
-
Constructor Details
-
SensorPacket
public SensorPacket()
-
-
Method Details
-
getSensorType
Gets the sensor type.- Returns:
- sensor type.
-
setSensorType
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
-
toString
-
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
-