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 void
addAlarmRange(MatchCriteria contextMatch, DoubleRange range, AlarmLevels level)
Adds a new, or unions with an existing range for the specified context and levelvoid
addContextAlarm(NumericContextAlarm nca)
void
addContextAlarms(Collection<NumericContextAlarm> ncas)
void
addCriticalAlarmRange(MatchCriteria contextMatch, DoubleRange criticalRange)
Adds a new, or unions with an existing critical range for the specified contextvoid
addDistressAlarmRange(MatchCriteria contextMatch, DoubleRange distressRange)
Adds a new, or unions with an existing distress range for the specified contextvoid
addSevereAlarmRange(MatchCriteria contextMatch, DoubleRange severeRange)
Adds a new, or unions with an existing severe range for the specified contextvoid
addWarningAlarmRange(MatchCriteria contextMatch, DoubleRange warningRange)
Adds a new, or unions with an existing warning range for the specified contextvoid
addWatchAlarmRange(MatchCriteria contextMatch, DoubleRange watchRange)
Adds a new, or unions with an existing watch range for the specified contextIntegerParameterType
build()
NumericAlarm
createOrGetAlarm(MatchCriteria contextMatch)
NumericAlarm
getDefaultAlarm()
NumericContextAlarm
getNumericContextAlarm(MatchCriteria context)
void
setContextAlarmList(List<NumericContextAlarm> contextAlarmList)
Sets the contextual alarm list overriding any other contextual alarm if already set.void
setDefaultAlarm(NumericAlarm defaultAlarm)
void
setDefaultCriticalAlarmRange(DoubleRange criticalRange)
void
setDefaultDistressAlarmRange(DoubleRange distressRange)
void
setDefaultSevereAlarmRange(DoubleRange severeRange)
void
setDefaultWarningAlarmRange(DoubleRange warningRange)
void
setDefaultWatchAlarmRange(DoubleRange watchRange)
void
setNumericContextAlarmList(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, 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.NumericParameterType.Builder
getEncoding, setEncoding
-
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(IntegerParameterType integerParameterType)
-
-
Method Detail
-
setDefaultAlarm
public void setDefaultAlarm(NumericAlarm defaultAlarm)
- Specified by:
setDefaultAlarm
in 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
- usenull
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
- usenull
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
- usenull
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
- usenull
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
- usenull
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
- usenull
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:
createOrGetAlarm
in interfaceNumericParameterType.Builder<IntegerParameterType.Builder>
-
getDefaultAlarm
public NumericAlarm getDefaultAlarm()
-
build
public IntegerParameterType build()
- Specified by:
build
in interfaceDataType.Builder<IntegerParameterType.Builder>
- Specified by:
build
in interfaceNumericParameterType.Builder<IntegerParameterType.Builder>
- Specified by:
build
in interfaceParameterType.Builder<IntegerParameterType.Builder>
-
setContextAlarmList
public void setContextAlarmList(List<NumericContextAlarm> contextAlarmList)
Description copied from interface:NumericParameterType.Builder
Sets the contextual alarm list overriding any other contextual alarm if already set.- Specified by:
setContextAlarmList
in interfaceNumericParameterType.Builder<IntegerParameterType.Builder>
-
-