Package org.yamcs.xtceproc
Class DataEncodingDecoder
- java.lang.Object
-
- org.yamcs.xtceproc.DataEncodingDecoder
-
public class DataEncodingDecoder extends Object
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:
DataDecoder
-
-
Constructor Summary
Constructors Constructor Description DataEncodingDecoder(ContainerProcessingContext pcontext)DataEncodingDecoder(ProcessorData pdata, BitBuffer buffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueextractRaw(DataEncoding de)Extracts the raw uncalibrated parameter value from the buffer.static org.yamcs.protobuf.Yamcs.Value.TypegetRawType(DataEncoding encoding)return the nominal Value.Type of a raw value corresponding to the given XTCE data encoding definitionstatic ValuegetRawValue(DataEncoding de, Object value)
-
-
-
Constructor Detail
-
DataEncodingDecoder
public DataEncodingDecoder(ContainerProcessingContext pcontext)
-
DataEncodingDecoder
public DataEncodingDecoder(ProcessorData pdata, BitBuffer buffer)
-
-
Method Detail
-
extractRaw
public Value extractRaw(DataEncoding de)
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
-
getRawType
public static org.yamcs.protobuf.Yamcs.Value.Type getRawType(DataEncoding encoding)
return the nominal Value.Type of a raw value corresponding to the given XTCE data encoding definition- Parameters:
encoding-- Returns:
-
getRawValue
public static Value getRawValue(DataEncoding de, Object value)
-
-