public class AirwatchMain
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController
| Constructor and Description |
|---|
AirwatchMain(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
Attempts to start all configured instruments.
|
void |
checkStarted()
Checks whether all the instruments are running.
|
void |
checkStopped()
Checks whether future readouts have been canceled.
|
String |
disable(String ident)
Prevents an instrument from being read until further notice.
|
String |
enable(String ident,
String newLocation)
Sets a new location for an instrument then enables periodic readout for it.
|
void |
initModule()
Checks whether all the subsystem components have been constructed
and registers the ClearAlertHandler.
|
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()
Does nothing.
|
getComponentTree, getEnvironment, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getCheckedValueFromConfiguration, getChildren, getComponentByName, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangepublic AirwatchMain(String name)
name - The module name.@Command(type=QUERY,
description="Displays a short report on instrument status.")
public String instruments()
@Command(type=ACTION,
description="Prevents further readout of an instrument")
public String disable(@Argument(description="Instrument index number or location.")
String ident)
throws Exception
ident - Either an instrument number or a location name.IllegalArgumentException - if ident is invalid or ambiguous.Exceptionenable(java.lang.String, java.lang.String)@Command(type=ACTION,
description="Sets new location for and enables instrument.")
public String enable(@Argument(description="Instrument index number or current location.")
String ident,
@Argument(description="New location.")
String newLocation)
throws Exception
ident - Either an instrument number or a location name.newLocation - The name of the new location to be monitored.IllegalArgumentException - if ident is invalid or ambiguous.IllegalArgumentException - if newLocation is invalid.org.lsst.ccs.HardwareException - if device operations fail.Exceptiondisable(java.lang.String)public org.lsst.ccs.framework.TreeWalkerDiag signal(org.lsst.ccs.framework.Signal sig)
signal in interface org.lsst.ccs.framework.SignalHandlersignal in class org.lsst.ccs.framework.Modulesig - The signal.public void initModule()
initModule in class org.lsst.ccs.framework.ModuleError - if anything is missing.public void start()
start in interface org.lsst.ccs.framework.Configurablepublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
throws org.lsst.ccs.HardwareException
checkHardware in interface org.lsst.ccs.framework.HardwareControllerorg.lsst.ccs.HardwareException - if any fail to respond or if any report hardware faults.public void checkStarted()
throws org.lsst.ccs.HardwareException
checkStarted in interface org.lsst.ccs.framework.HardwareControllerorg.lsst.ccs.HardwareException - if any aren't.public void postStart()
throws org.lsst.ccs.HardwareException
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.ConfigurablepostStart in class org.lsst.ccs.framework.Moduleorg.lsst.ccs.HardwareException - never.public void checkStopped()
throws org.lsst.ccs.HardwareException
checkStopped in interface org.lsst.ccs.framework.HardwareControllerorg.lsst.ccs.HardwareException - if periodic readout is still scheduled.#stop()Copyright © 2016 LSST. All rights reserved.