public class LoaderClampModule extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, fcslog, haltRequired, hasToWaitForEndOfAction, lock, motionCompleted, moving| Constructor and Description |
|---|
LoaderClampModule(String moduleName,
int aTickMillis,
LoaderHookModule hook1,
LoaderHookModule hook2,
LoaderHookModule hook3,
LoaderHookModule hook4,
String plutoGWName,
long timeoutForClosingHooks,
long timeoutForClosingHooksStrongly,
long timeoutForOpeningHooks,
long timeoutForGoingToHomePosition,
int targetPositionToOpen,
int targetPositionToClose,
int targetPositionToCloseStrongly,
int currentToClose,
int currentToGoHome,
Map<String,Integer> paramsForCurrentToClamp,
Map<String,Integer> paramsForCurrentToGoHomePosition,
int minPosition,
int maxPosition) |
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, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic LoaderClampModule(String moduleName, int aTickMillis, LoaderHookModule hook1, LoaderHookModule hook2, LoaderHookModule hook3, LoaderHookModule hook4, String plutoGWName, long timeoutForClosingHooks, long timeoutForClosingHooksStrongly, long timeoutForOpeningHooks, long timeoutForGoingToHomePosition, int targetPositionToOpen, int targetPositionToClose, int targetPositionToCloseStrongly, int currentToClose, int currentToGoHome, Map<String,Integer> paramsForCurrentToClamp, Map<String,Integer> paramsForCurrentToGoHomePosition, int minPosition, int maxPosition)
public LoaderHookModule getHook1()
public LoaderHookModule getHook2()
public LoaderHookModule getHook3()
public LoaderHookModule getHook4()
public int getPosition()
public int getMinPosition()
public int getMaxPosition()
public int getTargetPositionToOpen()
public int getTargetPositionToClose()
public int getTargetPositionToClamp()
public int getCurrentToClose()
public int getCurrentToGoHome()
public long getTimeoutForClosingHooks()
public long getTimeoutForClampingHooks()
public long getTimeoutForOpeningHooks()
public long getTimeoutForGoingToHomePosition()
public FcsEnumerations.LockStatus getLockStatus()
@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 loader is empty.")
public boolean isEmpty()
@Command(type=QUERY,
level=1,
description="Returns true if loader hardware is connected and ready.")
public boolean isHardwareReady()
isHardwareReady in class MobileItemModulepublic void initModule()
initModule in class org.lsst.ccs.framework.Module@Command(type=QUERY,
level=1,
description="Returns true if hook is open and at home position")
public boolean isAtHomePosition()
throws SDORequestException,
org.lsst.ccs.bus.BadCommandException
SDORequestExceptionorg.lsst.ccs.bus.BadCommandException@Command(type=QUERY,
level=1,
description="Returns true if hook is closed and at clamped position")
public boolean isAtClampedPosition()
throws SDORequestException,
org.lsst.ccs.bus.BadCommandException
SDORequestExceptionorg.lsst.ccs.bus.BadCommandException@Command(type=QUERY,
level=1,
description="Returns true if hook is at closed position.")
public boolean isAtClosedPosition()
throws SDORequestException,
org.lsst.ccs.bus.BadCommandException
SDORequestExceptionorg.lsst.ccs.bus.BadCommandException@Command(type=QUERY,
level=1,
description="Returns true if hook is at open position.")
public boolean isAtOpenPosition()
throws SDORequestException,
org.lsst.ccs.bus.BadCommandException
SDORequestExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic void initializeHardware()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
FcsHardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=ACTION,
level=1,
description="Go to clamped position to intialize hardware.")
public String goToClampedPosition()
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="Go to home position to intialize hardware.")
public String goToHomePosition()
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="Close clamp.")
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="Clamp clamp.")
public String clamp()
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 clamp.")
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 MobileItemModuleaction - public 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 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.ErrorInCommandExecutionExceptionFcsHardwareException@Command(type=ACTION,
level=1,
description="Update clamp state in reading sensors.")
public void updateStateWithSensors()
throws FcsHardwareException
FcsHardwareExceptionprotected void updateStateWithSensors(String[] readHexaValues) throws FcsHardwareException
readHexaValues - FcsHardwareException@Command(type=QUERY,
level=1,
description="Update clamp position in reading controller.")
public void updatePosition()
throws org.lsst.ccs.bus.BadCommandException,
SDORequestException
org.lsst.ccs.bus.BadCommandExceptionSDORequestException@Command(type=QUERY,
level=1,
description="List and display clamp info.")
public String listHooks()
@Command(type=QUERY,
level=1,
description="List and display clamp sensors values.")
public String listSensorsValues()
@Command(type=QUERY,
level=1,
description="List and display clamp sensors values.")
public String listStatus()
@Command(type=QUERY,
level=1,
description="List and display clamp info.")
public String toString()
public StatusDataPublishedByLoaderClamp getStatusData()
public void publishData()
Copyright © 2014 LSST. All rights reserved.