Package org.yamcs.xtce
Class EnumeratedParameterType
- java.lang.Object
-
- org.yamcs.xtce.NameDescription
-
- org.yamcs.xtce.BaseDataType
-
- org.yamcs.xtce.EnumeratedDataType
-
- org.yamcs.xtce.EnumeratedParameterType
-
- All Implemented Interfaces:
Serializable,DataType,ParameterType
public class EnumeratedParameterType extends EnumeratedDataType implements ParameterType
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnumeratedParameterType.Builder
-
Field Summary
-
Fields inherited from class org.yamcs.xtce.EnumeratedDataType
enumeration, enumerationList, ranges
-
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 Constructor Description EnumeratedParameterType(EnumeratedParameterType t)Copy constructorEnumeratedParameterType(EnumeratedParameterType.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCalibrationDescription()EnumerationContextAlarmgetContextAlarm(MatchCriteria contextMatch)List<EnumerationContextAlarm>getContextAlarmList()EnumerationAlarmgetDefaultAlarm()Set<Parameter>getDependentParameters()booleanhasAlarm()Whether this ParameterType has any alarms associatedvoidsetContextAlarmList(List<EnumerationContextAlarm> contextAlarmList)voidsetDefaultAlarm(EnumerationAlarm enumerationAlarm)Override the default alarm from MDBEnumeratedParameterType.BuildertoBuilder()Create a builder that can be used to make shallow copy of the parameter typeStringtoString()-
Methods inherited from class org.yamcs.xtce.EnumeratedDataType
calibrate, enumValue, enumValue, getInitialValue, getTypeAsString, getValueEnumerationList, getValueEnumerationRangeList, getValueType, hasLabel, parseString, setInitialValue
-
Methods inherited from class org.yamcs.xtce.BaseDataType
getEncoding, getUnitSet, parseStringForRawValue, setInitialValue, toString
-
Methods inherited from class org.yamcs.xtce.NameDescription
addAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, setAliasSet, setAncillaryData, setLongDescription, setName, setQualifiedName, setShortDescription
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.yamcs.xtce.DataType
getInitialValue, getLongDescription, getName, getShortDescription, getTypeAsString, getValueType, toString
-
Methods inherited from interface org.yamcs.xtce.ParameterType
getEncoding, parseString, parseStringForRawValue
-
-
-
-
Constructor Detail
-
EnumeratedParameterType
public EnumeratedParameterType(EnumeratedParameterType.Builder builder)
-
EnumeratedParameterType
public EnumeratedParameterType(EnumeratedParameterType t)
Copy constructor
-
-
Method Detail
-
hasAlarm
public boolean hasAlarm()
Description copied from interface:ParameterTypeWhether this ParameterType has any alarms associated- Specified by:
hasAlarmin interfaceParameterType
-
setDefaultAlarm
public void setDefaultAlarm(EnumerationAlarm enumerationAlarm)
Override the default alarm from MDB- Parameters:
enumerationAlarm-
-
getDependentParameters
public Set<Parameter> getDependentParameters()
- Specified by:
getDependentParametersin interfaceParameterType- Returns:
- the set of parameters on which this one depends in order to be extracted or alarm checked can be an empty set if this parameter does not depend on any other
-
getDefaultAlarm
public EnumerationAlarm getDefaultAlarm()
-
getContextAlarm
public EnumerationContextAlarm getContextAlarm(MatchCriteria contextMatch)
-
getContextAlarmList
public List<EnumerationContextAlarm> getContextAlarmList()
-
getCalibrationDescription
public String getCalibrationDescription()
-
setContextAlarmList
public void setContextAlarmList(List<EnumerationContextAlarm> contextAlarmList)
-
toBuilder
public EnumeratedParameterType.Builder toBuilder()
Description copied from interface:ParameterTypeCreate a builder that can be used to make shallow copy of the parameter typeall the fields reference to the same object like the original
- Specified by:
toBuilderin interfaceParameterType- Returns:
-
-