public class SftFilterLatchModule extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
protected NumericSensor |
filterPresenceSensor |
protected LatchActuatorModule |
latchActuator |
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 |
|---|
SftFilterLatchModule(String filterSensorsDIOName,
NumericSensor lockSensor,
NumericSensor unlockSensor,
NumericSensor filterPresenceSensor,
LatchActuatorModule latchActuator)
Build a new SftFilterLatchModule
|
abort, abort, checkHardware, checkStarted, checkStopped, executeAction, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopgetNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitraiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarninggetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected final LatchActuatorModule latchActuator
protected NumericSensor filterPresenceSensor
protected NumericSensor lockSensor
protected NumericSensor unlockSensor
protected volatile boolean updatingState
public SftFilterLatchModule(String filterSensorsDIOName, NumericSensor lockSensor, NumericSensor unlockSensor, NumericSensor filterPresenceSensor, LatchActuatorModule latchActuator)
filterSensorsDIOName - lockSensor - unlockSensor - filterPresenceSensor - latchActuator - public long getTimeoutForClosing()
public long getTimeoutForOpening()
public NumericSensor getFilterPresenceSensor()
public LatchActuatorModule getLatchActuator()
public NumericSensor getLockSensor()
public NumericSensor getUnlockSensor()
public boolean isControllerInFault()
public void initModule()
initModule in class MobileItemModule@Command(type=QUERY,
level=1,
description="Returns true if hardware is connected and ready.")
public boolean isCANDevicesReady()
isCANDevicesReady in class MobileItemModulepublic boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModulepublic void updateStateWithSensorsToCheckIfActionIsCompleted()
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModule@Command(level=1,
description="Read latch sensors and update latch state",
type=QUERY)
public void updateStateWithSensors()
FcsHardwareExceptionpublic void startAction(FcsEnumerations.MobileItemAction action) throws FcsHardwareException
startAction in class MobileItemModuleFcsHardwareExceptionpublic void abortAction(FcsEnumerations.MobileItemAction action, long delay)
abortAction in class MobileItemModulepublic void postAction(FcsEnumerations.MobileItemAction action)
postAction in class MobileItemModulepublic FcsEnumerations.LockStatus getLockStatus()
public void setLockStatus(FcsEnumerations.LockStatus lockStatus)
public FcsEnumerations.FilterPresenceStatus getPresenceStatus()
public StatusDataPublishedByAutochangerLatch getStatusData()
@Command(level=3,
description="Open latch",
type=ACTION)
public String open()
RejectedCommandExceptionFcsHardwareException@Command(level=3,
description="Close latch",
type=ACTION)
public String close()
FcsHardwareException@Command(level=1,
description="Return true if the latch is closed",
type=QUERY)
public boolean isLocked()
public void updateState(String hexaValue)
hexaValue - public void publishData()
publishData in class MobileItemModulepublic void quickStopAction(FcsEnumerations.MobileItemAction action, long delay)
quickStopAction in class MobileItemModuleCopyright © 2016 LSST. All rights reserved.