Package org.yamcs.xtce
Class EnumeratedDataType
java.lang.Object
org.yamcs.xtce.NameDescription
org.yamcs.xtce.BaseDataType
org.yamcs.xtce.EnumeratedDataType
- All Implemented Interfaces:
Serializable,DataType
- Direct Known Subclasses:
EnumeratedArgumentType,EnumeratedParameterType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMap<Long,ValueEnumeration> protected List<ValueEnumeration>protected List<ValueEnumerationRange>Fields inherited from class org.yamcs.xtce.BaseDataType
encodingFields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedperforms a shallow copy of this object into t -
Method Summary
Modifier and TypeMethodDescriptioncalibrate(long raw) convertType(Object value) Converts to the canonical (boxed) java representation of this type.Returns the enumeration value that maps to the given label or null if it does not exist.enumValueRange(String label) Returns the enumeration value range that maps to the given label or null if it does not exist.Get the initial value if anyString which represents the type.Return the expected Value type of an engineering value conforming to this XTCE data typebooleanprotected voidsetInitialValue(Object initialValue) Methods inherited from class org.yamcs.xtce.BaseDataType
getEncoding, getUnitSet, parseStringForRawValue, setInitialValue, setUnitSet, toStringMethods 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, setShortDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.xtce.DataType
getLongDescription, getName, getQualifiedName, getShortDescription
-
Field Details
-
enumeration
-
enumerationList
-
ranges
-
-
Constructor Details
-
EnumeratedDataType
performs a shallow copy of this object into t- Parameters:
t-
-
-
Method Details
-
setInitialValue
- Specified by:
setInitialValuein classBaseDataType
-
getInitialValue
Description copied from interface:DataTypeGet the initial value if any- Returns:
-
enumValue
-
enumValue
Returns the enumeration value that maps to the given label or null if it does not exist.It does not look through the ranges
-
enumValueRange
Returns the enumeration value range that maps to the given label or null if it does not exist.It does not look through the regular enumerations
-
calibrate
-
hasLabel
-
getValueEnumerationList
-
getValueEnumerationRangeList
-
convertType
Description copied from interface:DataTypeConverts to the canonical (boxed) java representation of this type.For example, if
valueis aString, 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
Description copied from interface:DataTypeReturn the expected Value type of an engineering value conforming to this XTCE data type- Returns:
-
getTypeAsString
Description copied from interface:DataTypeString which represents the type. This string will be presented to the users of the system.- Returns:
-