public class AutochangerOnlineClampModule extends MobileItemModule implements MovedByEPOSController
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, FCSLOG, haltRequired, hasToWaitForEndOfAction, lock, motionCompleted, moving, stopRequired| Constructor and Description |
|---|
AutochangerOnlineClampModule(String moduleName,
int aTickMillis,
EPOSController onlineClampController,
NumericSensor lockSensor0,
NumericSensor lockSensor1,
NumericSensor unlockSensor0,
NumericSensor unlockSensor1,
int currentToLock,
int currentToUnlock,
int currentToClamp,
Map<String,Integer> paramsForCurrentToLock,
Map<String,Integer> paramsForCurrentToUnlock,
int holdTime,
int travelTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
checkConditionForLocking() |
void |
checkConditionForUnlocking() |
void |
checkControllerBeforeAction() |
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
This method is called during INITIALIZATION phase.
|
void |
configureController() |
void |
configureDigitalInputOfOnlineClamps()
This method is used to configure the controllers of the autochanger
online clamps.
|
void |
configureDigitalOutputOfOnlineClamps()
This methods is used to configure the autochanger onlineClamps EPOS
controllers.
|
StatusDataPublishedByAutochangerOnlineClamp |
createStatusDataPublishedByOnlineClamp() |
EPOSController |
getController() |
String |
getControllerName()
Return the name of the controller.
|
int |
getCurrentToClamp() |
int |
getCurrentToLock() |
int |
getCurrentToUnlock() |
int |
getHoldTime() |
NumericSensor |
getLockSensor() |
FcsEnumerations.LockStatus |
getLockStatus() |
StatusDataPublishedByAutochangerOnlineClamp |
getStatusData() |
int |
getTravelTime() |
NumericSensor |
getUnlockSensor() |
NumericSensor |
getUnlockSensorC() |
void |
initModule() |
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action) |
boolean |
isControllerInFault()
Return true if the controller is in fault (an EmergencyMessage has been previously received.)
|
boolean |
isHardwareReady() |
boolean |
isInError() |
boolean |
isInitialized() |
boolean |
isInTravel() |
boolean |
isLocked() |
boolean |
isLockSensorInError() |
boolean |
isUnlocked() |
boolean |
isUnlockSensorInError() |
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() |
void |
quickStopAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
setControllerInFault(boolean controllerInFault) |
void |
setCurrentToClamp(int currentToClamp) |
void |
setCurrentToLock(int currentToLock) |
void |
setCurrentToUnlock(int currentToUnlock) |
void |
setHoldTime(int holdTime) |
void |
setTravelTime(int travelTime) |
void |
slowDownCurrent() |
void |
startAction(FcsEnumerations.MobileItemAction action) |
String |
testLock() |
String |
testUnlock() |
void |
tick() |
void |
updateStateWithSensors()
This methods updates the whole autochanger state in reading all the
sensors.
|
void |
updateStateWithSensors(String[] hexaValues)
This methods updates lockStatus from the values return by the sensors.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted() |
abort, abort, checkStarted, checkStopped, executeAction, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopgetComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, postStart, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, processEmergencyMessagechange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getFullPath, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic AutochangerOnlineClampModule(String moduleName, int aTickMillis, EPOSController onlineClampController, NumericSensor lockSensor0, NumericSensor lockSensor1, NumericSensor unlockSensor0, NumericSensor unlockSensor1, int currentToLock, int currentToUnlock, int currentToClamp, Map<String,Integer> paramsForCurrentToLock, Map<String,Integer> paramsForCurrentToUnlock, int holdTime, int travelTime)
public int getCurrentToLock()
@ConfigChanger public void setCurrentToLock(int currentToLock)
public int getCurrentToUnlock()
@ConfigChanger public void setCurrentToUnlock(int currentToUnlock)
public int getCurrentToClamp()
@ConfigChanger public void setCurrentToClamp(int currentToClamp)
public int getHoldTime()
@ConfigChanger public void setHoldTime(int holdTime)
public int getTravelTime()
@ConfigChanger public void setTravelTime(int travelTime)
public EPOSController getController()
public FcsEnumerations.LockStatus getLockStatus()
public NumericSensor getLockSensor()
public NumericSensor getUnlockSensor()
public NumericSensor getUnlockSensorC()
@Command(type=QUERY,
level=1,
description="Returns true if lockSensor and lockSensorC retun the same value.")
public boolean isLockSensorInError()
@Command(type=QUERY,
level=1,
description="Returns true if unlockSensor and unlockSensorC retun the same value.")
public boolean isUnlockSensorInError()
@Command(type=QUERY,
level=1,
description="Returns true if LockStatus=ERROR, this means that lockSensor or unlockSensor is in ERROR or thatunlockSensor and lockSensor return non consistant values.")
public boolean isInError()
@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=INTRAVEL.")
public boolean isInTravel()
@Command(type=QUERY,
level=1,
description="Returns true if controller is in fault.")
public boolean isControllerInFault()
MovedByEPOSControllerisControllerInFault in interface MovedByEPOSControllerpublic void setControllerInFault(boolean controllerInFault)
setControllerInFault in interface MovedByEPOSControllerpublic String getControllerName()
MovedByEPOSControllergetControllerName in interface MovedByEPOSController@Command(type=QUERY,
level=1,
description="Returns true if clamp is initialized.")
public boolean isInitialized()
public void initModule()
initModule in class MobileItemModulepublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=QUERY,
level=1,
description="Returns true if controller is initialized and configured.")
public boolean isHardwareReady()
isHardwareReady in class MobileItemModule@Command(type=QUERY,
level=1,
description="Check if the onlineClamp can be locked.")
public void checkConditionForUnlocking()
throws FcsHardwareException
FcsHardwareException@Command(type=QUERY,
level=1,
description="Check if the onlineClamp can be locked.")
public void checkConditionForLocking()
throws FcsHardwareException
FcsHardwareExceptionpublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
throws org.lsst.ccs.HardwareException
checkHardware in interface org.lsst.ccs.framework.HardwareControllercheckHardware in class MobileItemModuleorg.lsst.ccs.HardwareException@Command(type=QUERY,
level=1,
description="Read in the CPU of the controller parameters for mode CURRENT.If a parameter has a different value than in configuration, throws an exception.")
public void checkControllerBeforeAction()
throws org.lsst.ccs.HardwareException,
FcsHardwareException
org.lsst.ccs.HardwareExceptionFcsHardwareException@Command(type=ACTION,
level=1,
description="Configure controller.")
public void configureController()
throws SDORequestException,
org.lsst.ccs.HardwareException,
FcsHardwareException
SDORequestExceptionorg.lsst.ccs.HardwareExceptionFcsHardwareException@Command(type=ACTION,
level=1,
description="Update latch state in reading sensors.")
public void updateStateWithSensors()
throws FcsHardwareException
FcsHardwareException@Command(type=ACTION,
level=1,
description="Update state in reading sensors.")
public void updateStateWithSensors(String[] hexaValues)
hexaValues - public 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.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
startAction in class MobileItemModuleorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareException@Command(type=ACTION,
level=1,
description="Lock online clamp for CPPM test bench.")
public String testLock()
throws SDORequestException,
ShortResponseToSDORequestException,
org.lsst.ccs.messaging.BadCommandException,
org.lsst.ccs.messaging.ErrorInCommandExecutionException,
InterruptedException,
FcsHardwareException,
org.lsst.ccs.HardwareException
SDORequestExceptionShortResponseToSDORequestExceptionorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionInterruptedExceptionFcsHardwareExceptionorg.lsst.ccs.HardwareException@Command(type=ACTION,
level=1,
description="Unlock online clamp for CPPM test bench.")
public String testUnlock()
throws SDORequestException,
org.lsst.ccs.messaging.BadCommandException,
ShortResponseToSDORequestException,
org.lsst.ccs.messaging.ErrorInCommandExecutionException,
InterruptedException,
FcsHardwareException,
org.lsst.ccs.HardwareException
SDORequestExceptionorg.lsst.ccs.messaging.BadCommandExceptionShortResponseToSDORequestExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionInterruptedExceptionFcsHardwareExceptionorg.lsst.ccs.HardwareExceptionpublic void abortAction(FcsEnumerations.MobileItemAction action, long delay) throws org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
abortAction in class MobileItemModuleorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void postAction(FcsEnumerations.MobileItemAction action) throws org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
postAction in class MobileItemModuleorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void slowDownCurrent()
throws org.lsst.ccs.messaging.BadCommandException,
SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
org.lsst.ccs.messaging.BadCommandExceptionSDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareException@Command(type=ACTION,
level=1,
description="To configure the online clamps controllers.")
public void configureDigitalInputOfOnlineClamps()
throws SDORequestException,
FcsHardwareException
@Command(type=ACTION,
level=1,
description="To configure the online clamps controllers.")
public void configureDigitalOutputOfOnlineClamps()
throws SDORequestException,
FcsHardwareException
public void processUpdate(Observable source, org.lsst.ccs.framework.Module.ValueUpdate v)
processUpdate in class org.lsst.ccs.framework.Modulesource - v - public StatusDataPublishedByAutochangerOnlineClamp getStatusData()
public StatusDataPublishedByAutochangerOnlineClamp createStatusDataPublishedByOnlineClamp()
public void publishData()
publishData in interface MovedByEPOSControllerpublishData in class MobileItemModulepublic void quickStopAction(FcsEnumerations.MobileItemAction action, long delay) throws org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
quickStopAction in class MobileItemModuleorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionCopyright © 2016 LSST. All rights reserved.