Package com.rodrigoandrade.jstds.model
Class TelemetryPacket
java.lang.Object
com.rodrigoandrade.jstds.model.TelemetryPacket
- Direct Known Subclasses:
KarawaraMission
Base type for decoded telemetry packets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds a sensor to this packet.abstract voidDecodes the raw payload into the packet state.Returns the mission identifier.Returns the raw payload that produced this packet.Returns the sensors associated with this packet.voidsetRawPayload(String rawPayload) Stores the raw payload that produced this packet.
-
Constructor Details
-
TelemetryPacket
Creates a packet for the given mission.- Parameters:
missionID- mission identifier
-
-
Method Details
-
decode
Decodes the raw payload into the packet state.- Parameters:
payload- raw telemetry payload
-
getMissionID
Returns the mission identifier.- Returns:
- mission identifier
-
getSensors
Returns the sensors associated with this packet.- Returns:
- sensor list
-
getRawPayload
Returns the raw payload that produced this packet.- Returns:
- raw telemetry payload
-
setRawPayload
Stores the raw payload that produced this packet.- Parameters:
rawPayload- raw telemetry payload
-
addSensor
Adds a sensor to this packet.- Parameters:
sensor- sensor to add
-