Package org.yamcs.xtce
Class FloatDataType
- java.lang.Object
-
- org.yamcs.xtce.NameDescription
-
- org.yamcs.xtce.BaseDataType
-
- org.yamcs.xtce.NumericDataType
-
- org.yamcs.xtce.FloatDataType
-
- All Implemented Interfaces:
Serializable,DataType
- Direct Known Subclasses:
FloatArgumentType,FloatParameterType
public abstract class FloatDataType extends NumericDataType
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFloatDataType.Builder<T extends FloatDataType.Builder<T>>
-
Field Summary
-
Fields inherited from class org.yamcs.xtce.BaseDataType
encoding
-
Fields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFloatDataType(FloatDataType t)protectedFloatDataType(FloatDataType.Builder<?> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleconvertType(Object value)Converts to the canonical (boxed) java representation of this type.DoublegetInitialValue()Get the initial value if anyintgetSizeInBits()StringgetTypeAsString()String which represents the type.FloatValidRangegetValidRange()Yamcs.Value.TypegetValueType()Return the expected Value type of an engineering value conforming to this XTCE data typeprotected voidsetInitialValue(Object initialValue)-
Methods inherited from class org.yamcs.xtce.BaseDataType
getEncoding, getUnitSet, parseStringForRawValue, setInitialValue, setUnitSet, toString
-
Methods inherited from class org.yamcs.xtce.NameDescription
addAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, qualifiedName, setAliasSet, setAncillaryData, setLongDescription, setName, setQualifiedName, setShortDescription
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.yamcs.xtce.DataType
getLongDescription, getName, getQualifiedName, getShortDescription
-
-
-
-
Constructor Detail
-
FloatDataType
protected FloatDataType(FloatDataType.Builder<?> builder)
-
FloatDataType
protected FloatDataType(FloatDataType t)
-
-
Method Detail
-
getInitialValue
public Double getInitialValue()
Description copied from interface:DataTypeGet the initial value if any- Returns:
-
setInitialValue
protected void setInitialValue(Object initialValue)
- Specified by:
setInitialValuein classBaseDataType
-
getSizeInBits
public int getSizeInBits()
-
getValidRange
public FloatValidRange getValidRange()
-
convertType
public Double convertType(Object value)
Description copied from interface:DataTypeConverts to the canonical (boxed) java representation of this type.For example, if value is a String, an integer-like DataType should parse the String value, and return an Integer result.
- Parameters:
value- value to be converted, use boxed primitive values.- Returns:
- The preferred java object representation
-
getValueType
public Yamcs.Value.Type getValueType()
Description copied from interface:DataTypeReturn the expected Value type of an engineering value conforming to this XTCE data type- Returns:
-
-