
public class Alarm extends Object implements HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected String |
description
Data fields.
|
static int |
EVENT_LIMBO
Constants.
|
static int |
EVENT_LIMBO_FROM_ERROR
Constants.
|
static int |
EVENT_LIMBO_FROM_GOOD
Constants.
|
static int |
EVENT_RESET
Constants.
|
static int |
EVENT_TRIP
Constants.
|
protected int |
eventParm |
protected boolean |
ignoreAlarmHandlers |
protected String |
name |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
First lifecycle hook.
|
boolean |
canClearState() |
void |
clearState() |
Alert |
getAlert(AlertState alertState,
AlertState previousAlertState)
Get the Alert to be raised at the given AlertState.
|
static AlertState |
getAlertStateFromEventId(int event)
Get the AlertState corresponding to the event id used by AlarmHandlers
|
String |
getName() |
void |
init()
Called from the enclosing
Subsystem at initialization
phase. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostBuild, postInit, postShutdown, postStart, shutdown, startpublic static final int EVENT_TRIP
public static final int EVENT_LIMBO
public static final int EVENT_LIMBO_FROM_ERROR
public static final int EVENT_LIMBO_FROM_GOOD
public static final int EVENT_RESET
protected String description
protected int eventParm
protected boolean ignoreAlarmHandlers
@LookupName protected String name
public Alarm()
public Alarm(Alert alert)
public void build()
HasLifecyclebuild in interface HasLifecyclepublic void init()
HasLifecycleSubsystem at initialization
phase.
This method is called before the children components of this
object have their init method called.
At the time it is called, connection to the messaging layer is not yet
done, so there should be no attempt to send messages in the body of
this method. Configuration for message listening can nevertheless be
done here, such as adding MessageListener
objects.
It is unnecessary to call super.init()
init in interface HasLifecyclepublic Alert getAlert(AlertState alertState, AlertState previousAlertState)
alertState - The State at which the Alert will be raised.previousAlertState - The previous state in this state transition.public static AlertState getAlertStateFromEventId(int event)
event - The event Id.public void clearState()
public boolean canClearState()
public String getName()
Copyright © 2021 LSST. All rights reserved.