Package org.yamcs.xtce
Class FloatDataEncoding
java.lang.Object
org.yamcs.xtce.DataEncoding
org.yamcs.xtce.FloatDataEncoding
- All Implemented Interfaces:
Serializable
,NumericDataEncoding
For common encodings of floating point data.
Unlike XTCE we support encoding floats as strings - this is done by providing a separate StringDataEncoding
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
Fields inherited from class org.yamcs.xtce.DataEncoding
fromBinaryTransformAlgorithm, sizeInBits, toBinaryTransformAlgorithm
-
Constructor Summary
ConstructorDescriptioncopy constructor -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Create a shallow copy of the data encodingparseString
(String stringValue) parses the string into a java object of the correct type Has to match the DataEncodingDecoder (so probably it should be moved there somehow: TODO)void
setContextCalibratorList
(List<ContextCalibrator> contextCalibratorList) void
setDefaultCalibrator
(Calibrator calibrator) toString()
Methods inherited from class org.yamcs.xtce.DataEncoding
getByteOrder, getFromBinaryTransformAlgorithm, getSizeInBits, getToBinaryTransformAlgorithm, setFromBinaryTransformAlgorithm, setSizeInBits, setToBinaryTransformAlgorithm
-
Constructor Details
-
FloatDataEncoding
-
FloatDataEncoding
copy constructor- Parameters:
fde
-
-
-
Method Details
-
toBuilder
- Specified by:
toBuilder
in classDataEncoding
-
getEncoding
-
getStringDataEncoding
-
getDefaultCalibrator
- Specified by:
getDefaultCalibrator
in interfaceNumericDataEncoding
-
setDefaultCalibrator
- Specified by:
setDefaultCalibrator
in interfaceNumericDataEncoding
-
toString
-
parseString
Description copied from class:DataEncoding
parses the string into a java object of the correct type Has to match the DataEncodingDecoder (so probably it should be moved there somehow: TODO)- Specified by:
parseString
in classDataEncoding
-
getContextCalibratorList
- Specified by:
getContextCalibratorList
in interfaceNumericDataEncoding
-
setContextCalibratorList
- Specified by:
setContextCalibratorList
in interfaceNumericDataEncoding
-
getDependentParameters
- Overrides:
getDependentParameters
in classDataEncoding
-
copy
Description copied from class:DataEncoding
Create a shallow copy of the data encoding- Specified by:
copy
in classDataEncoding
- Returns:
-