public static class FloatParameterType.Builder extends FloatDataType.Builder<FloatParameterType.Builder> implements NumericParameterType.Builder<FloatParameterType.Builder>
baseType, initialValue| Constructor and Description |
|---|
Builder() |
Builder(FloatParameterType floatParameterType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlarmRange(MatchCriteria contextMatch,
DoubleRange floatRange,
AlarmLevels level)
Adds a new, or unions with an existing range for the specified context and level
|
void |
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 context
|
void |
addDistressAlarmRange(MatchCriteria contextMatch,
DoubleRange distressRange)
Adds a new, or unions with an existing distress range for the specified context
|
void |
addSevereAlarmRange(MatchCriteria contextMatch,
DoubleRange severeRange)
Adds a new, or unions with an existing severe range for the specified context
|
void |
addWarningAlarmRange(MatchCriteria contextMatch,
DoubleRange warningRange)
Adds a new, or unions with an existing warning range for the specified context
|
void |
addWatchAlarmRange(MatchCriteria contextMatch,
DoubleRange watchRange)
Adds a new, or unions with an existing watch range for the specified context
|
FloatParameterType |
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) |
setInitialValue, setSizeInBits, setValidRangeaddAllUnits, addUnit, getEncoding, setBaseType, setEncoding, setInitialValue, setInitialValuegetName, self, setAliasSet, setAncillaryData, setLongDescription, setName, setShortDescriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEncoding, setEncodingsetInitialValue, setLongDescription, setName, setShortDescriptionpublic Builder()
public Builder(FloatParameterType floatParameterType)
public void setContextAlarmList(List<NumericContextAlarm> contextAlarmList)
NumericParameterType.BuildersetContextAlarmList in interface NumericParameterType.Builder<FloatParameterType.Builder>public void addContextAlarm(NumericContextAlarm nca)
public void addContextAlarms(Collection<NumericContextAlarm> ncas)
public NumericAlarm createOrGetAlarm(MatchCriteria contextMatch)
public NumericContextAlarm getNumericContextAlarm(MatchCriteria context)
public void addAlarmRange(MatchCriteria contextMatch, DoubleRange floatRange, AlarmLevels level)
contextMatch - use null for the default contextpublic void addWatchAlarmRange(MatchCriteria contextMatch, DoubleRange watchRange)
contextMatch - use null for the default contextpublic void addWarningAlarmRange(MatchCriteria contextMatch, DoubleRange warningRange)
contextMatch - use null for the default contextpublic void addDistressAlarmRange(MatchCriteria contextMatch, DoubleRange distressRange)
contextMatch - use null for the default contextpublic void addCriticalAlarmRange(MatchCriteria contextMatch, DoubleRange criticalRange)
contextMatch - use null for the default contextpublic void addSevereAlarmRange(MatchCriteria contextMatch, DoubleRange severeRange)
contextMatch - use null for the default contextpublic void setDefaultWatchAlarmRange(DoubleRange watchRange)
public void setDefaultWarningAlarmRange(DoubleRange warningRange)
public void setDefaultDistressAlarmRange(DoubleRange distressRange)
public void setDefaultCriticalAlarmRange(DoubleRange criticalRange)
public void setDefaultSevereAlarmRange(DoubleRange severeRange)
public NumericAlarm getDefaultAlarm()
public FloatParameterType build()
build in interface DataType.Builder<FloatParameterType.Builder>build in interface NumericParameterType.Builder<FloatParameterType.Builder>build in interface ParameterType.Builder<FloatParameterType.Builder>public void setDefaultAlarm(NumericAlarm defaultAlarm)
setDefaultAlarm in interface NumericParameterType.Builder<FloatParameterType.Builder>Copyright © 2020 Space Applications Services. All rights reserved.