public class LoaderHookModule
extends org.lsst.ccs.framework.Module
| Modifier and Type | Field and Description |
|---|---|
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, change, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, injectResources, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected 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 redaing 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 © 2014 LSST. All rights reserved.