public class EnumeratedDataType extends BaseDataType
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<Long,ValueEnumeration> |
enumeration |
protected List<ValueEnumeration> |
enumerationList |
protected List<ValueEnumerationRange> |
ranges |
encoding, initialValuename, PATH_SEPARATOR, qualifiedName, xtceAliasSet| Modifier | Constructor and Description |
|---|---|
protected |
EnumeratedDataType(EnumeratedDataType t)
performs a shallow copy of this object into t
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEnumerationRange(double min,
double max,
boolean isMinInclusive,
boolean isMaxInclusive,
String label)
Add range to enumeration list
|
void |
addEnumerationRange(ValueEnumerationRange range) |
void |
addEnumerationValue(long value,
String label)
Add value to enumeration list
|
void |
addEnumerationValue(ValueEnumeration ve) |
ValueEnumeration |
enumValue(Long key) |
ValueEnumeration |
enumValue(String label) |
String |
getInitialValue()
Get the initial value if any
|
String |
getTypeAsString()
String which represents the type.
|
List<ValueEnumeration> |
getValueEnumerationList() |
List<ValueEnumerationRange> |
getValueEnumerationRangeList() |
Yamcs.Value.Type |
getValueType()
Return the expected Value type of an engineering value conforming to this XTCE data type
|
boolean |
hasLabel(String label) |
Object |
parseString(String stringValue)
returns stringValue
|
addAllUnits, addUnit, getEncoding, getUnitSet, parseStringForRawValue, setEncoding, setInitialValueaddAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getAncillaryDataSet, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, setAliasSet, setLongDescription, setName, setQualifiedName, setShortDescriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLongDescription, getName, getShortDescription, setLongDescription, setShortDescriptionprotected HashMap<Long,ValueEnumeration> enumeration
protected List<ValueEnumeration> enumerationList
protected List<ValueEnumerationRange> ranges
protected EnumeratedDataType(EnumeratedDataType t)
t - public String getInitialValue()
DataTypepublic ValueEnumeration enumValue(Long key)
public ValueEnumeration enumValue(String label)
public boolean hasLabel(String label)
public void addEnumerationValue(long value,
String label)
value - Integer valuelabel - Label associated with valuepublic void addEnumerationValue(ValueEnumeration ve)
public void addEnumerationRange(double min,
double max,
boolean isMinInclusive,
boolean isMaxInclusive,
String label)
public void addEnumerationRange(ValueEnumerationRange range)
public List<ValueEnumeration> getValueEnumerationList()
public List<ValueEnumerationRange> getValueEnumerationRangeList()
public Object parseString(String stringValue)
parseString in interface DataTypeparseString in class BaseDataTypepublic Yamcs.Value.Type getValueType()
DataTypeCopyright © 2019 Space Applications Services. All rights reserved.