public final class AirwatchMain extends Object implements org.lsst.ccs.framework.ClearAlertHandler, org.lsst.ccs.framework.HardwareController, org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.framework.SignalHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
DEW_POINT_KEY |
static String |
N_DEW_HUMIDS_KEY |
static String |
N_DEW_TEMPS_KEY |
| Constructor and Description |
|---|
AirwatchMain()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode |
canClearAlert(org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.states.AlertState state)
Handles all alerts by allowing them to be cleared.
|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
Attempts to start all configured instruments that are operational.
|
void |
checkStopped()
Cancels periodic readout if this hasn't already been done (part of shutdown).
|
String |
disable(int index)
Prevents an instrument from being read until further notice.
|
String |
enable(int index)
Enables periodic readout for an instrument.
|
void |
init()
Checks whether all the subsystem components have been constructed.
|
String |
instruments()
Gives the status of each of the instruments.
|
void |
postStart()
Does nothing.
|
org.lsst.ccs.framework.TreeWalkerDiag |
signal(org.lsst.ccs.framework.Signal sig)
Signal handler for stop and abort.
|
void |
start()
Creates the email sender.
|
public static final String N_DEW_TEMPS_KEY
public static final String N_DEW_HUMIDS_KEY
public static final String DEW_POINT_KEY
@Command(type=QUERY,
description="Displays a short report on instrument status.",
level=0)
public String instruments()
@Command(type=ACTION,
description="Prevents further readout of an instrument",
level=1,
timeout=120100)
public String disable(@Argument(description="Instrument index number.")
int index)
throws Exception
index - An instrument number.IndexOutOfBoundsException - if index is invalid.org.lsst.ccs.HardwareException - if device operations fail.Exception - if ident is invalid or ambiguous.#enable(java.lang.String, java.lang.String)@Command(type=ACTION,
description="Enables an instrument for readout.",
level=1,
timeout=121000)
public String enable(@Argument(description="Instrument index number.")
int index)
throws Exception
index - An instrument number.IndexOutOfBoundsException - if index is invalid.org.lsst.ccs.HardwareException - if device operations fail.Exception#disable(java.lang.String)public org.lsst.ccs.framework.TreeWalkerDiag signal(org.lsst.ccs.framework.Signal sig)
signal in interface org.lsst.ccs.framework.SignalHandlersig - The signal.public void init()
init in interface org.lsst.ccs.framework.HasLifecycleError - if anything is missing.public org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
throws org.lsst.ccs.HardwareException
start() has been called
for all configurable components. All instruments are stopped and re-started
with correct configurations for their assigned locations.checkHardware in interface org.lsst.ccs.framework.HardwareControllerorg.lsst.ccs.HardwareException - if any fail to respond or if any report hardware faults.public void start()
start in interface org.lsst.ccs.framework.HasLifecyclepublic void postStart()
start() has been called for all configurable components and after
checkHardware() and checkStarted() have been called for all
hardware controllers.postStart in interface org.lsst.ccs.framework.HasLifecyclepublic void checkStopped()
throws org.lsst.ccs.HardwareException
checkStopped in interface org.lsst.ccs.framework.HardwareControllerorg.lsst.ccs.HardwareException - if periodic readout is still scheduled.signal(org.lsst.ccs.framework.Signal)public org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode canClearAlert(org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.states.AlertState state)
canClearAlert in interface org.lsst.ccs.framework.ClearAlertHandleralert - The alert to be cleared.state - The current state (severity) of the alert.CLEAR_ALERT.Copyright © 2021 LSST. All rights reserved.