Package org.yamcs.xtce
Class IntegerParameterType.Builder
- java.lang.Object
-
- org.yamcs.xtce.NameDescription.Builder<T>
-
- org.yamcs.xtce.BaseDataType.Builder<T>
-
- org.yamcs.xtce.IntegerDataType.Builder<IntegerParameterType.Builder>
-
- org.yamcs.xtce.IntegerParameterType.Builder
-
- All Implemented Interfaces:
DataType.Builder<IntegerParameterType.Builder>,NumericParameterType.Builder<IntegerParameterType.Builder>,ParameterType.Builder<IntegerParameterType.Builder>
- Enclosing class:
- IntegerParameterType
public static class IntegerParameterType.Builder extends IntegerDataType.Builder<IntegerParameterType.Builder> implements NumericParameterType.Builder<IntegerParameterType.Builder>
-
-
Field Summary
-
Fields inherited from class org.yamcs.xtce.BaseDataType.Builder
baseType, initialValue
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(IntegerParameterType integerParameterType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAlarmRange(MatchCriteria contextMatch, DoubleRange range, AlarmLevels level)Adds a new, or unions with an existing range for the specified context and levelvoidaddContextAlarm(NumericContextAlarm nca)voidaddContextAlarms(Collection<NumericContextAlarm> ncas)voidaddCriticalAlarmRange(MatchCriteria contextMatch, DoubleRange criticalRange)Adds a new, or unions with an existing critical range for the specified contextvoidaddDistressAlarmRange(MatchCriteria contextMatch, DoubleRange distressRange)Adds a new, or unions with an existing distress range for the specified contextvoidaddSevereAlarmRange(MatchCriteria contextMatch, DoubleRange severeRange)Adds a new, or unions with an existing severe range for the specified contextvoidaddWarningAlarmRange(MatchCriteria contextMatch, DoubleRange warningRange)Adds a new, or unions with an existing warning range for the specified contextvoidaddWatchAlarmRange(MatchCriteria contextMatch, DoubleRange watchRange)Adds a new, or unions with an existing watch range for the specified contextIntegerParameterTypebuild()NumericAlarmcreateOrGetAlarm(MatchCriteria contextMatch)NumericAlarmgetDefaultAlarm()NumericContextAlarmgetNumericContextAlarm(MatchCriteria context)voidsetContextAlarmList(List<NumericContextAlarm> contextAlarmList)Sets the contextual alarm list overriding any other contextual alarm if already set.voidsetDefaultAlarm(NumericAlarm defaultAlarm)voidsetDefaultCriticalAlarmRange(DoubleRange criticalRange)voidsetDefaultDistressAlarmRange(DoubleRange distressRange)voidsetDefaultSevereAlarmRange(DoubleRange severeRange)voidsetDefaultWarningAlarmRange(DoubleRange warningRange)voidsetDefaultWatchAlarmRange(DoubleRange watchRange)voidsetNumericContextAlarmList(List<NumericContextAlarm> numericContextAlarmList)-
Methods inherited from class org.yamcs.xtce.IntegerDataType.Builder
isSigned, setSigned, setSizeInBits, setValidRange
-
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
getName, self, setAliasSet, setAncillaryData, setLongDescription, setName, 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
setInitialValue, setLongDescription, setName, setShortDescription
-
Methods inherited from interface org.yamcs.xtce.NumericParameterType.Builder
getEncoding, setEncoding
-
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(IntegerParameterType integerParameterType)
-
-
Method Detail
-
setDefaultAlarm
public void setDefaultAlarm(NumericAlarm defaultAlarm)
- Specified by:
setDefaultAlarmin interfaceNumericParameterType.Builder<IntegerParameterType.Builder>
-
setNumericContextAlarmList
public void setNumericContextAlarmList(List<NumericContextAlarm> numericContextAlarmList)
-
setDefaultWatchAlarmRange
public void setDefaultWatchAlarmRange(DoubleRange watchRange)
-
setDefaultWarningAlarmRange
public void setDefaultWarningAlarmRange(DoubleRange warningRange)
-
setDefaultDistressAlarmRange
public void setDefaultDistressAlarmRange(DoubleRange distressRange)
-
setDefaultCriticalAlarmRange
public void setDefaultCriticalAlarmRange(DoubleRange criticalRange)
-
setDefaultSevereAlarmRange
public void setDefaultSevereAlarmRange(DoubleRange severeRange)
-
addAlarmRange
public void addAlarmRange(MatchCriteria contextMatch, DoubleRange range, AlarmLevels level)
Adds a new, or unions with an existing range for the specified context and level- Parameters:
contextMatch- use null for the default context
-
addWatchAlarmRange
public void addWatchAlarmRange(MatchCriteria contextMatch, DoubleRange watchRange)
Adds a new, or unions with an existing watch range for the specified context- Parameters:
contextMatch- use null for the default context
-
addWarningAlarmRange
public void addWarningAlarmRange(MatchCriteria contextMatch, DoubleRange warningRange)
Adds a new, or unions with an existing warning range for the specified context- Parameters:
contextMatch- use null for the default context
-
addDistressAlarmRange
public void addDistressAlarmRange(MatchCriteria contextMatch, DoubleRange distressRange)
Adds a new, or unions with an existing distress range for the specified context- Parameters:
contextMatch- use null for the default context
-
addCriticalAlarmRange
public void addCriticalAlarmRange(MatchCriteria contextMatch, DoubleRange criticalRange)
Adds a new, or unions with an existing critical range for the specified context- Parameters:
contextMatch- use null for the default context
-
addSevereAlarmRange
public void addSevereAlarmRange(MatchCriteria contextMatch, DoubleRange severeRange)
Adds a new, or unions with an existing severe range for the specified context- Parameters:
contextMatch- use null for the default context
-
addContextAlarm
public void addContextAlarm(NumericContextAlarm nca)
-
addContextAlarms
public void addContextAlarms(Collection<NumericContextAlarm> ncas)
-
getNumericContextAlarm
public NumericContextAlarm getNumericContextAlarm(MatchCriteria context)
-
createOrGetAlarm
public NumericAlarm createOrGetAlarm(MatchCriteria contextMatch)
- Specified by:
createOrGetAlarmin interfaceNumericParameterType.Builder<IntegerParameterType.Builder>
-
getDefaultAlarm
public NumericAlarm getDefaultAlarm()
-
build
public IntegerParameterType build()
- Specified by:
buildin interfaceDataType.Builder<IntegerParameterType.Builder>- Specified by:
buildin interfaceNumericParameterType.Builder<IntegerParameterType.Builder>- Specified by:
buildin interfaceParameterType.Builder<IntegerParameterType.Builder>
-
setContextAlarmList
public void setContextAlarmList(List<NumericContextAlarm> contextAlarmList)
Description copied from interface:NumericParameterType.BuilderSets the contextual alarm list overriding any other contextual alarm if already set.- Specified by:
setContextAlarmListin interfaceNumericParameterType.Builder<IntegerParameterType.Builder>
-
-