public class LoaderHookModule
extends org.lsst.ccs.framework.Module
| Modifier and Type | Field and Description |
|---|---|
protected static org.lsst.ccs.utilities.logging.Logger |
fcslog |
protected Lock |
lock |
protected boolean |
updatingState
This is used when we update the latch state with the values returned
by the sensors.
|
| Constructor and Description |
|---|
LoaderHookModule(String name,
NumericSensor lockSensor,
NumericSensor unlockSensor) |
| Modifier and Type | Method and Description |
|---|---|
NumericSensor |
getLockSensor() |
FcsEnumerations.LockStatus |
getLockStatus() |
NumericSensor |
getUnlockSensor() |
void |
initModule() |
boolean |
isInError() |
String |
listSensorsValues() |
String |
toString() |
void |
updateStateWithSensors(String[] hexaValues)
This methods updates lockStatus from the values return by the sensors.
|
alias, getComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected static final org.lsst.ccs.utilities.logging.Logger fcslog
protected final Lock lock
protected volatile boolean updatingState
public LoaderHookModule(String name, NumericSensor lockSensor, NumericSensor unlockSensor)
public NumericSensor getLockSensor()
public NumericSensor getUnlockSensor()
public boolean isInError()
public FcsEnumerations.LockStatus getLockStatus()
public void initModule()
initModule in class org.lsst.ccs.framework.Module@Command(type=ACTION,
level=1,
description="Update state in reading sensors.")
public void updateStateWithSensors(String[] hexaValues)
hexaValues - @Command(type=QUERY,
level=1,
description="display sensors info")
public String toString()
@Command(type=QUERY,
level=1,
description="List and display hook sensors values.")
public String listSensorsValues()
Copyright © 2015 LSST. All rights reserved.