public enum Alerts extends Enum<Alerts>
| Enum Constant and Description |
|---|
MOTION
Raised if the Hall data from the last motion indicate a significant deviation
from the predicted motion.
|
MOTOR
Raised if some problem has been observed with the motors.
|
PLC
Raised if the shutter controller sends an explicit error message to the subsystem.
|
STOP_CMD
Raised if the subsystem has been given the stopAllMotion() command while in Prod.
|
SYNC
Raised if the PLC state machine and the subsystem state machine appear to
have gotten out of sync.
|
WATCHDOG
Raised if no messages have arrived from the shutter controller within a certain period.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
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 SYNC
public static final Alerts PLC
public static final Alerts WATCHDOG
public static final Alerts MOTION
public static final Alerts MOTOR
public static final Alerts STOP_CMD
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.public static void registerAll(org.lsst.ccs.services.alert.AlertService alertSvc)
Copyright © 2024 LSST. All rights reserved.