
public class LoaderClampModule extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, fcslog, haltRequired, hasToWaitForEndOfAction, lock, motionCompleted, moving, stopRequired| Constructor and Description |
|---|
LoaderClampModule(String moduleName,
int aTickMillis,
LoaderHookModule hook1,
LoaderHookModule hook2,
LoaderHookModule hook3,
LoaderHookModule hook4,
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,
int minCurrent,
int maxCurrent) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction(FcsEnumerations.MobileItemAction action,
long delay) |
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware() |
String |
clamp() |
String |
close() |
int |
getCurrentToClamp() |
int |
getCurrentToGoHome() |
int |
getFilterPresenceSensorValue() |
LoaderHookModule |
getHook1() |
LoaderHookModule |
getHook2() |
LoaderHookModule |
getHook3() |
LoaderHookModule |
getHook4() |
FcsEnumerations.LockStatus |
getLockStatus() |
int |
getMaxCurrent() |
int |
getMaxPosition() |
int |
getMinCurrent() |
int |
getMinPosition() |
int |
getPosition() |
int |
getReadCurrent() |
StatusDataPublishedByLoaderClamp |
getStatusData() |
int |
getTargetPositionToClamp() |
int |
getTargetPositionToClose() |
int |
getTargetPositionToOpen() |
long |
getTimeoutForClampingHooks() |
long |
getTimeoutForClosingHooks() |
long |
getTimeoutForGoingToHomePosition() |
long |
getTimeoutForOpeningHooks() |
String |
goToClampedPosition()
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()
If loader is empty, go to home position otherwise go to clamped position.
|
void |
initModule() |
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action)
Check if the action is completed.
|
boolean |
isAtClampedPosition() |
boolean |
isAtClosedPosition() |
boolean |
isAtHomePosition() |
boolean |
isAtOpenPosition() |
boolean |
isEmpty() |
boolean |
isHardwareReady() |
boolean |
isInError() |
boolean |
isInitialized() |
boolean |
isLocked() |
boolean |
isUnlocked() |
String |
listHooks() |
String |
listSensorsValues() |
String |
listStatus() |
String |
open() |
void |
postAction(FcsEnumerations.MobileItemAction action) |
void |
processUpdate(Observable source,
org.lsst.ccs.framework.Module.ValueUpdate v)
What to do when the Modules we observe send there new values.
|
void |
publishData()
Publish Data on status bus for trending data base and GUIs.
|
void |
quickStopAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
setCurrentToClamp(int currentToClamp) |
void |
setCurrentToGoHome(int currentToGoHome) |
void |
setMaxPosition(int maxPosition) |
void |
setMinPosition(int minPosition) |
void |
setTargetPositionToClamp(int targetPositionToClamp) |
void |
setTargetPositionToClose(int targetPositionToClose) |
void |
setTargetPositionToOpen(int targetPositionToOpen) |
void |
setTimeoutForClampingHooks(long timeoutForClampingHooks) |
void |
setTimeoutForClosingHooks(long timeoutForClosingHooks) |
void |
setTimeoutForGoingToHomePosition(long timeoutForGoingToHomePosition) |
void |
setTimeoutForOpeningHooks(long timeoutForOpeningHooks) |
void |
startAction(FcsEnumerations.MobileItemAction action) |
void |
tick() |
String |
toString() |
void |
updateCurrent()
Updates the field position of the carrier in reading the CPU of the controller.
|
void |
updatePosition()
Updates the position of the clamp in reading the CPU of the controller.
|
void |
updateStateWithSensors()
This methods updates the lockStatus in reading all the sensors.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted() |
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, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkpublic LoaderClampModule(String moduleName, int aTickMillis, LoaderHookModule hook1, LoaderHookModule hook2, LoaderHookModule hook3, LoaderHookModule hook4, 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, int minCurrent, int maxCurrent)
public int getFilterPresenceSensorValue()
public LoaderHookModule getHook1()
public LoaderHookModule getHook2()
public LoaderHookModule getHook3()
public LoaderHookModule getHook4()
public int getPosition()
public int getMinPosition()
public int getMaxPosition()
public int getMinCurrent()
public int getMaxCurrent()
public int getTargetPositionToOpen()
public int getTargetPositionToClose()
public int getTargetPositionToClamp()
public int getCurrentToClamp()
public int getCurrentToGoHome()
public int getReadCurrent()
@ConfigChanger public long getTimeoutForClosingHooks()
public long getTimeoutForClampingHooks()
public long getTimeoutForOpeningHooks()
@ConfigChanger public long getTimeoutForGoingToHomePosition()
@Command(type=QUERY, level=1, description="Returns true if hook is initialized.") public boolean isInitialized()
@ConfigChanger public void setTimeoutForClosingHooks(long timeoutForClosingHooks)
@ConfigChanger public void setTimeoutForClampingHooks(long timeoutForClampingHooks)
@ConfigChanger public void setTimeoutForOpeningHooks(long timeoutForOpeningHooks)
@ConfigChanger public void setTimeoutForGoingToHomePosition(long timeoutForGoingToHomePosition)
@ConfigChanger public void setMinPosition(int minPosition)
@ConfigChanger public void setMaxPosition(int maxPosition)
@ConfigChanger public void setTargetPositionToOpen(int targetPositionToOpen)
@ConfigChanger public void setTargetPositionToClose(int targetPositionToClose)
@ConfigChanger public void setTargetPositionToClamp(int targetPositionToClamp)
@ConfigChanger public void setCurrentToClamp(int currentToClamp)
@ConfigChanger public void setCurrentToGoHome(int currentToGoHome)
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 LockStatus=UNLOCKED") public boolean isInError()
@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.Modulepublic void processUpdate(Observable source, org.lsst.ccs.framework.Module.ValueUpdate v)
processUpdate in class org.lsst.ccs.framework.Modulesource - v - @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
SDORequestException@Command(type=ACTION, level=1, description="If loader is empty, go to home position otherwise go to clamped position.", alias="homing") public void initializeHardware() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
throws org.lsst.ccs.HardwareException
checkHardware in interface org.lsst.ccs.framework.HardwareControllercheckHardware in class MobileItemModuleorg.lsst.ccs.HardwareExceptionpublic 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 initialize 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 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.ErrorInCommandExecutionExceptionFcsHardwareException@Command(type=ACTION, level=1, description="Update clamp state in reading sensors.") public void updateStateWithSensors() throws FcsHardwareException
FcsHardwareException@Command(type=QUERY, level=1, description="Update carrier current in reading controller.") public void updateCurrent() throws org.lsst.ccs.bus.BadCommandException, SDORequestException
org.lsst.ccs.bus.BadCommandExceptionSDORequestException@Command(type=QUERY, level=1, description="Update clamp position in reading controller.") public void updatePosition() throws SDORequestException
SDORequestException@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()
publishData in class MobileItemModuleCopyright © 2015 LSST. All rights reserved.