Package org.yamcs.xtce
Class AlarmRanges
java.lang.Object
org.yamcs.xtce.AlarmRanges
- All Implemented Interfaces:
Serializable
Contains five ranges: Watch, Warning, Distress, Critical, and Severe each in increasing severity. Normally, only the
Warning and Critical ranges are used and the color yellow is associated with Warning and the color red is associated
with Critical. The ranges given are valid for numbers lower than the min and higher than the max values. These ranges
should not overlap, but if they do, assume the most severe range is to be applied. All ranges are optional and it is
quite allowed for there to be only one end of the range. Range values are in calibrated engineering units.
Note that we actually keep here the ranges for the IN_LIMITS. This means that if range.inRange(v)!=0 (meaning v out
of range), then the parameter is in alarm state.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCriticalRange
(DoubleRange range) void
addDistressRange
(DoubleRange range) void
addRange
(DoubleRange range, AlarmLevels level) void
addSevereRange
(DoubleRange range) void
addWarningRange
(DoubleRange range) void
addWatchRange
(DoubleRange range) void
setWarningRange
(DoubleRange warningRange) toString()