public class LoaderClampModule extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, haltRequired, itemMoving, lock, motionCompleted| 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> paramsForCurrentToClose,
Map<String,Integer> paramsForCurrentToGoHomePosition,
int minPosition,
int maxPosition) |
abort, abort, executeAction, isItemMoving, readSensorsUntilActionIsCompleted, signal, stopalias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, 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, shutdownNow, 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> paramsForCurrentToClose, 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()
public 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
SDORequestException@Command(type=QUERY,
level=1,
description="Returns true if hook is closed and at clamped position")
public boolean isAtClampedPosition()
throws SDORequestException
SDORequestException@Command(type=QUERY,
level=1,
description="Returns true if hook is at closed position.")
public boolean isAtClosedPosition()
throws SDORequestException
SDORequestException@Command(type=QUERY,
level=1,
description="Returns true if hook is at open position.")
public boolean isAtOpenPosition()
throws SDORequestException
SDORequestExceptionpublic void initializeHardware()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionpublic 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,
HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareException@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,
HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareException@Command(type=ACTION,
level=1,
description="Close clamp.")
public String close()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareException@Command(type=ACTION,
level=1,
description="Clamp clamp.")
public String clamp()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareException@Command(type=ACTION,
level=1,
description="Open clamp.")
public 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 stopAction(FcsEnumerations.MobileItemAction action, long delay) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException
stopAction 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.ErrorInCommandExecutionExceptionHardwareException@Command(type=ACTION,
level=1,
description="Update clamp state in reading sensors.")
public void updateStateWithSensors()
@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()
@Deprecated public void publishClampData()
Copyright © 2014 LSST. All Rights Reserved.