Package org.yamcs.mdb
Class DataEncodingDecoder
java.lang.Object
org.yamcs.mdb.DataEncodingDecoder
Decodes TM data according to the specification of the DataEncoding
This is a generic catch all decoder, relies on specific custom decoders implementing
the DataDecoder interface when necessary.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExtracts the raw uncalibrated parameter value from the buffer.extractRaw
(DataEncoding de, ContainerProcessingContext pcontext) Extract the raw, uncalibrated parameter value from the buffer, using the provider context to find referenced parameter values for variable- sized objects.static Yamcs.Value.Type
getRawType
(DataEncoding encoding) return the nominal Value.Type of a raw value corresponding to the given XTCE data encoding definitionstatic Value
getRawValue
(DataEncoding de, Object value)
-
Constructor Details
-
DataEncodingDecoder
-
DataEncodingDecoder
-
-
Method Details
-
extractRaw
Extracts the raw uncalibrated parameter value from the buffer.- Returns:
- the extracted value or null if something went wrong - in this case the parameter will be marked with aquisitionStatus = INVALID
-
extractRaw
Extract the raw, uncalibrated parameter value from the buffer, using the provider context to find referenced parameter values for variable- sized objects.- Parameters:
de
- the data encodingpcontext
- the processing context, or null if the context is unknown- Returns:
- the extracted value, or null if something went wrong - in this case the parameter will be marked with aquisitionStatus = INVALID
-
getRawType
return the nominal Value.Type of a raw value corresponding to the given XTCE data encoding definition- Parameters:
encoding
-- Returns:
-
getRawValue
-