public class FilterLatchModule extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
protected NumericSensor |
filterPresenceSensor |
protected NumericSensor |
lockSensor |
protected NumericSensor |
unlockSensor |
protected boolean |
updatingState
This is used when we update the latch state with the values returned
by the sensors.
|
itemMoving, lock, motionCompleted| Constructor and Description |
|---|
FilterLatchModule(String moduleName,
int aTickMillis,
long timeoutForClosing,
long timeoutForOpening,
String filterSensorsDIOName,
NumericSensor lockSensor,
NumericSensor unlockSensor,
NumericSensor filterPresenceSensor,
LatchActuatorModule latchActuator) |
executeAction, readSensorsUntilActionIsCompleted, shutdownNowalias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected NumericSensor filterPresenceSensor
protected NumericSensor lockSensor
protected NumericSensor unlockSensor
protected volatile boolean updatingState
public FilterLatchModule(String moduleName, int aTickMillis, long timeoutForClosing, long timeoutForOpening, String filterSensorsDIOName, NumericSensor lockSensor, NumericSensor unlockSensor, NumericSensor filterPresenceSensor, LatchActuatorModule latchActuator)
public void setFilterSensorsDIOName(String filterSensorsDIOName)
@ConfigChanger public void setTimeoutForClosing(long timeoutForClosing)
@ConfigChanger public void setTimeoutForOpening(long timeoutForOpening)
public long getTimeoutForClosing()
public long getTimeoutForOpening()
public NumericSensor getFilterPresenceSensor()
public LatchActuatorModule getLatchActuator()
public NumericSensor getLockSensor()
public NumericSensor getUnlockSensor()
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModulepublic void updateStateWithSensorsToCheckIfActionIsCompleted()
throws Exception
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModuleExceptionpublic void startAction(FcsEnumerations.MobileItemAction action) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException
startAction in class MobileItemModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionpublic void postAction(FcsEnumerations.MobileItemAction action) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException
postAction in class MobileItemModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionpublic FcsEnumerations.LockStatus getLockStatus()
public void setLockStatus(FcsEnumerations.LockStatus lockStatus)
public FcsEnumerations.FilterPresenceInLatchStatus getPresenceStatus()
public StatusDataPublishedByLatch getStatusData()
public String open() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException, Exception
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionExceptionpublic String close() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException, Exception
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionExceptionpublic boolean isLocked()
public boolean isUnlocked()
public boolean isInError()
public void updateState(String hexaValue)
public void publishTrendingData(StatusDataPublishedByLatch status)
status - Copyright © 2013 LSST. All Rights Reserved.