Package org.yamcs.xtce
Class EnumeratedParameterType.Builder
java.lang.Object
org.yamcs.xtce.NameDescription.Builder<T>
org.yamcs.xtce.BaseDataType.Builder<T>
org.yamcs.xtce.EnumeratedDataType.Builder<EnumeratedParameterType.Builder>
org.yamcs.xtce.EnumeratedParameterType.Builder
- All Implemented Interfaces:
DataType.Builder<EnumeratedParameterType.Builder>
,ParameterType.Builder<EnumeratedParameterType.Builder>
- Enclosing class:
- EnumeratedParameterType
public static class EnumeratedParameterType.Builder
extends EnumeratedDataType.Builder<EnumeratedParameterType.Builder>
implements ParameterType.Builder<EnumeratedParameterType.Builder>
-
Field Summary
Fields inherited from class org.yamcs.xtce.EnumeratedDataType.Builder
enumerationList, ranges
Fields inherited from class org.yamcs.xtce.BaseDataType.Builder
baseType, initialValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAlarm
(MatchCriteria contextMatch, String enumLabel, AlarmLevels level) Adds a new contextual alarm for the specified valuevoid
build()
createOrGetAlarm
(MatchCriteria contextMatch) getContextAlarm
(MatchCriteria contextMatch) void
setContextAlarmList
(List<EnumerationContextAlarm> contextAlarmList) void
setDefaultAlarm
(EnumerationAlarm enumerationAlarm) Methods inherited from class org.yamcs.xtce.EnumeratedDataType.Builder
addEnumerationRange, addEnumerationValue, addEnumerationValue, enumValue, enumValue, getValueEnumerationList, getValueEnumerationRangeList, hasLabel
Methods inherited from class org.yamcs.xtce.BaseDataType.Builder
addAllUnits, addUnit, getEncoding, setBaseType, setEncoding, setInitialValue, setInitialValue
Methods inherited from class org.yamcs.xtce.NameDescription.Builder
addAlias, getName, self, 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.Builder
getName, setInitialValue, setLongDescription, setName, setQualifiedName, setShortDescription
Methods inherited from interface org.yamcs.xtce.ParameterType.Builder
setEncoding
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
setDefaultAlarm
-
addContextAlarm
-
addAlarm
Adds a new contextual alarm for the specified value- Parameters:
contextMatch
- usenull
for the default context
-
createOrGetAlarm
-
getDefaultAlarm
-
getContextAlarm
-
setContextAlarmList
-
build
- Specified by:
build
in interfaceDataType.Builder<EnumeratedParameterType.Builder>
- Specified by:
build
in interfaceParameterType.Builder<EnumeratedParameterType.Builder>
-