public class LoaderCarrierModule extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
protected NumericSensor |
handoffPositionSensor |
protected NumericSensor |
storagePositionSensor |
protected boolean |
updatingState |
currentAction, fcslog, haltRequired, hasToWaitForEndOfAction, lock, motionCompleted, moving| Constructor and Description |
|---|
LoaderCarrierModule(String moduleName,
int aTickMillis) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFilterPresence()
Updates the boolean field empty and returns it.
|
void |
goToHandOff() |
void |
goToStorage() |
void |
initializeHardware() |
void |
initModule() |
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action) |
boolean |
isAtHandoffPosition()
Returns the boolean field atHandoff.
|
boolean |
isAtStoragePosition()
Returns the boolean field atStorage.
|
boolean |
isAutochangerHoldingFilter() |
boolean |
isConnectedOnCamera() |
boolean |
isEmpty()
Returns the boolean field empty.
|
boolean |
isHardwareReady() |
void |
postAction(FcsEnumerations.MobileItemAction action) |
void |
startAction(FcsEnumerations.MobileItemAction action) |
void |
stopAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
updateStateWithSensors()
This methods updates the carrier state in reading all the carrier sensors.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted() |
abort, abort, checkHardware, checkStarted, checkStopped, executeAction, isMoving, readSensorsUntilActionIsCompleted, shutdownNow, signal, stopalias, 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, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected NumericSensor storagePositionSensor
protected NumericSensor handoffPositionSensor
protected volatile boolean updatingState
public LoaderCarrierModule(String moduleName, int aTickMillis)
public void initModule()
initModule in class org.lsst.ccs.framework.Module@Command(type=QUERY,
level=1,
description="Returns true if loader hardware is connected and ready.")
public boolean isHardwareReady()
isHardwareReady in class MobileItemModule@Command(type=QUERY,
level=0,
description="Read the sensors and return true if a filter is in the loader.")
public boolean checkFilterPresence()
throws FcsHardwareException
FcsHardwareException@Command(type=QUERY,
level=0,
description="Return true if there is no filter in the loader. This command doesn\'t read again the sensors.")
public boolean isEmpty()
@Command(type=QUERY,
level=0,
description="Return true if the carrier is at storage position. This command doesn\'t read again the sensors.")
public boolean isAtStoragePosition()
@Command(type=QUERY,
level=0,
description="Return true if the carrier is at storage position. This command doesn\'t read again the sensors.")
public boolean isAtHandoffPosition()
@Command(type=QUERY,
level=0,
description="Return true if the loader is connected on the camera. This command doesn\'t read again the sensors.")
public boolean isConnectedOnCamera()
@Command(type=QUERY,
level=0,
description="Return true if the autochanger is holding the filter. This command doesn\'t read again the sensors.")
public boolean isAutochangerHoldingFilter()
public void goToHandOff()
public void goToStorage()
public boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModulepublic void updateStateWithSensorsToCheckIfActionIsCompleted()
throws Exception
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModuleException@Command(type=ACTION,
level=1,
description="Update clamp state in reading sensors.")
public void updateStateWithSensors()
throws FcsHardwareException
FcsHardwareExceptionpublic 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 stopAction(FcsEnumerations.MobileItemAction action, long delay) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException
stopAction 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 initializeHardware()
Copyright © 2014 LSST. All rights reserved.