
public class AutochangerLatchModule extends MobileItemModule implements FilterLatch
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, fcslog, haltRequired, hasToWaitForEndOfAction, lock, motionCompleted, moving, stopRequired| Constructor and Description |
|---|
AutochangerLatchModule(String moduleName,
int aTickMillis,
EPOSController latchController,
long timeoutForClosing,
long timeoutForOpening,
NumericSensor lockSensor,
NumericSensor unlockSensor,
NumericSensor filterPresenceSensor,
int minCurrent,
int maxCurrent,
int currentToOpen) |
abort, abort, 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, 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, toString, wait, wait, waitgetNamechange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkpublic AutochangerLatchModule(String moduleName, int aTickMillis, EPOSController latchController, long timeoutForClosing, long timeoutForOpening, NumericSensor lockSensor, NumericSensor unlockSensor, NumericSensor filterPresenceSensor, int minCurrent, int maxCurrent, int currentToOpen)
public NumericSensor getFilterPresenceSensor()
getFilterPresenceSensor in interface FilterLatchpublic NumericSensor getLockSensor()
getLockSensor in interface FilterLatchpublic NumericSensor getUnlockSensor()
getUnlockSensor in interface FilterLatchpublic String getControllerName()
public EPOSController getLatchController()
@Command(type=QUERY, level=1, description="Returns true if latchController is in Fault.") public boolean isControllerInFault()
isControllerInFault in interface FilterLatch@Command(type=QUERY, level=1, description="Returns true if latch is initialized.") public boolean isInitialized()
@ConfigChanger public void setMinCurrent(int minCurrent)
@ConfigChanger public void setMaxCurrent(int maxCurrent)
@ConfigChanger public void setCurrentToOpen(int currentToOpen)
public FcsEnumerations.LockStatus getLockStatus()
getLockStatus in interface FilterLatch@Command(type=QUERY, level=1, description="Returns true if LockStatus=LOCKED") public boolean isLocked()
@Command(type=QUERY, level=1, description="Returns true if LockStatus=UNLOCKED") public boolean isUnlocked()
@Command(type=QUERY, level=1, description="Returns true if LockStatus=ERROR, this means that unlockSensor and lockSensor return non consistant values.") public boolean isInError()
@Command(type=QUERY, level=1, description="Returns true if autochanger is empty.") public boolean isEmpty()
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
throws org.lsst.ccs.HardwareException
checkHardware in interface org.lsst.ccs.framework.HardwareControllercheckHardware in class MobileItemModuleorg.lsst.ccs.HardwareException@Command(type=ACTION, level=1, description="Update latch state in reading sensors.") public void updateStateWithSensors() throws FcsHardwareException
FcsHardwareException@Command(type=ACTION, level=1, description="Update state in reading sensors.") public void updateStateWithSensors(String[] hexaValues)
hexaValues - @Command(type=QUERY, level=1, description="Returns true if autochanger hardware is connected and ready.") public boolean isHardwareReady()
isHardwareReady in class MobileItemModule@Command(type=ACTION, level=1, description="Close latch.") public String close() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareException@Command(type=ACTION, level=1, description="Open latch.") public String open() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic 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, 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 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.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 void processUpdate(Observable source, org.lsst.ccs.framework.Module.ValueUpdate v)
processUpdate in class org.lsst.ccs.framework.Modulesource - v - public StatusDataPublishedByAutochangerLatch getStatusData()
public void publishData()
publishData in class MobileItemModuleCopyright © 2015 LSST. All rights reserved.