public class FilterLatchModule extends MobileItemModule implements FilterLatch
| 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.
|
currentAction, fcslog, haltRequired, hasToWaitForEndOfAction, lock, motionCompleted, moving, stopRequired| Constructor and Description |
|---|
FilterLatchModule(String moduleName,
int aTickMillis,
long timeoutForClosing,
long timeoutForOpening,
String filterSensorsDIOName,
NumericSensor lockSensor,
NumericSensor unlockSensor,
NumericSensor filterPresenceSensor,
LatchActuatorModule latchActuator) |
abort, abort, checkHardware, checkStarted, checkStopped, executeAction, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopalias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamechange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkprotected 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)
@ConfigChanger public void setTimeoutForClosing(long timeoutForClosing)
@ConfigChanger public void setTimeoutForOpening(long timeoutForOpening)
public long getTimeoutForClosing()
public long getTimeoutForOpening()
public NumericSensor getFilterPresenceSensor()
getFilterPresenceSensor in interface FilterLatchpublic LatchActuatorModule getLatchActuator()
public NumericSensor getLockSensor()
getLockSensor in interface FilterLatchpublic NumericSensor getUnlockSensor()
getUnlockSensor in interface FilterLatchpublic boolean isControllerInFault()
isControllerInFault in interface FilterLatchpublic void initModule()
initModule in class org.lsst.ccs.framework.Module@Command(type=QUERY,
level=1,
description="Returns true if hardware is connected and ready.")
public boolean isHardwareReady()
isHardwareReady in class MobileItemModulepublic boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModulepublic void updateStateWithSensorsToCheckIfActionIsCompleted()
throws Exception
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModuleException@Command(level=1,
description="Read latch sensors and update latch state",
type=QUERY)
public void updateStateWithSensors()
throws Exception
Exceptionpublic void startAction(FcsEnumerations.MobileItemAction action) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException
startAction in class MobileItemModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void abortAction(FcsEnumerations.MobileItemAction action, long delay) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException
abortAction in class MobileItemModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void postAction(FcsEnumerations.MobileItemAction action) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException
postAction in class MobileItemModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic FcsEnumerations.LockStatus getLockStatus()
getLockStatus in interface FilterLatchpublic void setLockStatus(FcsEnumerations.LockStatus lockStatus)
public FcsEnumerations.FilterPresenceInLatchStatus getPresenceStatus()
public StatusDataPublishedByAutochangerLatch getStatusData()
@Command(level=3,
description="Open latch",
type=ACTION)
public String open()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
FcsHardwareException,
Exception
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionException@Command(level=3,
description="Close latch",
type=ACTION)
public String close()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
FcsHardwareException,
Exception
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionException@Command(level=1,
description="Return true if the latch is closed",
type=QUERY)
public boolean isLocked()
public void updateState(String hexaValue)
public void publishData()
publishData in class MobileItemModulepublic void quickStopAction(FcsEnumerations.MobileItemAction action, long delay) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException
quickStopAction in class MobileItemModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionCopyright © 2015 LSST. All rights reserved.