public enum Alerts extends Enum<Alerts>
| Enum Constant and Description |
|---|
DATA_QUALITY
Raised if something went wrong when the sensor tried to make a new measurement.
|
LIMIT_VIOLATION
Raised if the Lighthouse application has flagged a sensor reading as out of bounds.
|
SENSOR_IO
Raised if we can't read sensor data from the Lighthouse PC.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
analogViolationMsg(String locName,
String chanName,
double value,
double lowerLimit,
double upperLimit)
Constructs a cause message of the form
|
static String |
counterViolationMsg(String locName,
String chanName,
double value)
Constructs a cause message of the form
|
static String |
dataQualityMsg(String locName,
String chanName,
String quality)
Constructs a cause message of the form
|
void |
raise(org.lsst.ccs.services.alert.AlertService alertSvc,
org.lsst.ccs.bus.states.AlertState severity,
String cause,
org.lsst.ccs.services.alert.AlertService.RaiseAlertStrategy strategy)
Raises the alert associated with this enumeration member.
|
static void |
registerAll(org.lsst.ccs.services.alert.AlertService alertSvc)
Register all alert objects, associating the clear-alert handler
ClearAlertHandler.ALWAYS with each. |
static Alerts |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Alerts[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Alerts SENSOR_IO
public static final Alerts LIMIT_VIOLATION
public static final Alerts DATA_QUALITY
public static Alerts[] values()
for (Alerts c : Alerts.values()) System.out.println(c);
public static Alerts valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void raise(org.lsst.ccs.services.alert.AlertService alertSvc,
org.lsst.ccs.bus.states.AlertState severity,
String cause,
org.lsst.ccs.services.alert.AlertService.RaiseAlertStrategy strategy)
alertSvc - the CCS alert service.severity - the state which the raised alert is to have.cause - the cause string which the raised alert is to have.strategy - the alert-raising strategy.public static void registerAll(org.lsst.ccs.services.alert.AlertService alertSvc)
ClearAlertHandler.ALWAYS with each.alertSvc - public static String dataQualityMsg(String locName, String chanName, String quality)
LOCATION CHANNEL QUALITY|Data quality is QUALITY for CHANNEL at LOCATION.
locName - the location of the sensor, for example MAIN_NW.chanName - the sensor channel, for example TEMP.quality - the data quality estimate, for example Questionable.public static String analogViolationMsg(String locName, String chanName, double value, double lowerLimit, double upperLimit)
LOCATION CHANNEL VALUE LOWER UPPER|Limit violation for CHANNEL at LOCATION. Value is VALUE, allowed range is [LOWER, UPPER].
locName - the location of the sensor, for example MAIN_NW.chanName - the sensor channel, for example TEMP.value - the sensor reading.lowerLimit - the lower limit.upperLimit - the upper limit.public static String counterViolationMsg(String locName, String chanName, double value)
LOCATION CHANNEL VALUE |Density of VALUE for particle size CHANNEL at LOCATION is too high.
locName - the location of the sensor, for example MAIN_NW.chanName - the sensor channel, for example TEMP.value - the sensor reading.Copyright © 2023 LSST. All rights reserved.