Package org.yamcs.xtce
Class BooleanDataEncoding
- java.lang.Object
-
- org.yamcs.xtce.DataEncoding
-
- org.yamcs.xtce.BooleanDataEncoding
-
- All Implemented Interfaces:
Serializable
public class BooleanDataEncoding extends DataEncoding
For boolean data. DIFFERS_FROM_XTCE: XTCE does not have a BooleanDataEncoding, only a BooleanParameterType. This creates an inconsistency when algorithms output uncalibrated boolean values.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBooleanDataEncoding.Builder
-
Field Summary
-
Fields inherited from class org.yamcs.xtce.DataEncoding
fromBinaryTransformAlgorithm, sizeInBits, toBinaryTransformAlgorithm
-
-
Constructor Summary
Constructors Constructor Description BooleanDataEncoding(BooleanDataEncoding.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanDataEncodingcopy()Create a shallow copy of the data encodingObjectparseString(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)BooleanDataEncoding.BuildertoBuilder()StringtoString()-
Methods inherited from class org.yamcs.xtce.DataEncoding
getByteOrder, getDependentParameters, getFromBinaryTransformAlgorithm, getSizeInBits, getToBinaryTransformAlgorithm, setFromBinaryTransformAlgorithm, setSizeInBits, setToBinaryTransformAlgorithm
-
-
-
-
Constructor Detail
-
BooleanDataEncoding
public BooleanDataEncoding(BooleanDataEncoding.Builder builder)
-
-
Method Detail
-
toBuilder
public BooleanDataEncoding.Builder toBuilder()
- Specified by:
toBuilderin classDataEncoding
-
parseString
public Object parseString(String stringValue)
Description copied from class:DataEncodingparses 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:
parseStringin classDataEncoding
-
copy
public BooleanDataEncoding copy()
Description copied from class:DataEncodingCreate a shallow copy of the data encoding- Specified by:
copyin classDataEncoding- Returns:
-
-