public class LoaderClampModule extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
Hook |
hook1 |
Hook |
hook2 |
Hook |
hook3 |
Hook |
hook4 |
CanOpenEPOS |
hooksController |
protected boolean |
updatingState |
itemMoving, lock, motionCompleted| Constructor and Description |
|---|
LoaderClampModule(String moduleName,
int aTickMillis,
long timeoutForClosingHooks,
long timeoutForClosingHooksStrongly,
long timeoutForOpeningHooks,
long timeoutForGoingToHomePosition,
int targetPositionToOpen,
int targetPositionToClose,
int targetPositionToCloseStrongly,
int currentToClose,
int currentToGoHome,
Map<String,Integer> paramsForCurrentToClose,
Map<String,Integer> paramsForCurrentToGoHomePosition,
Hook hook1,
Hook hook2,
Hook hook3,
Hook hook4) |
| Modifier and Type | Method and Description |
|---|---|
String |
clamp() |
String |
close() |
FcsEnumerations.LockStatus |
getLockStatus() |
String |
goToClosePosition()
In the initialisation phase, this close the clamp to be able to define the absolute position of the encoder.
|
String |
goToHomePosition()
In the initialisation phase, this open the clamp to be able to define the absolute position of the encoder.
|
void |
initializeHardware() |
void |
initModule() |
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action) |
boolean |
isEmpty() |
boolean |
isLocked() |
boolean |
isUnlocked() |
String |
listHooks() |
String |
listSensorsValues() |
String |
open() |
void |
postAction(FcsEnumerations.MobileItemAction action) |
void |
startAction(FcsEnumerations.MobileItemAction action) |
String |
toString() |
void |
updateStateWithSensors()
This methods updates the lockStatus in reading all the hooks sensors.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted() |
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, setChangedpublic CanOpenEPOS hooksController
public Hook hook1
public Hook hook2
public Hook hook3
public Hook hook4
protected volatile boolean updatingState
public LoaderClampModule(String moduleName, int aTickMillis, long timeoutForClosingHooks, long timeoutForClosingHooksStrongly, long timeoutForOpeningHooks, long timeoutForGoingToHomePosition, int targetPositionToOpen, int targetPositionToClose, int targetPositionToCloseStrongly, int currentToClose, int currentToGoHome, Map<String,Integer> paramsForCurrentToClose, Map<String,Integer> paramsForCurrentToGoHomePosition, Hook hook1, Hook hook2, Hook hook3, Hook hook4)
public FcsEnumerations.LockStatus getLockStatus()
public boolean isLocked()
public boolean isUnlocked()
public boolean isEmpty()
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void initializeHardware()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionpublic String goToClosePosition() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionpublic String goToHomePosition() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionpublic String close() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionpublic String clamp() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionpublic String open() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionpublic 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 void updateStateWithSensors()
public String listHooks()
public String listSensorsValues()
Copyright © 2014 LSST. All Rights Reserved.