public class AutochangerThreeOnlineClamps extends MobileItemModule implements ControlledBySensors
| Modifier and Type | Field and Description |
|---|---|
protected Condition |
currentRampEnded |
protected boolean |
hasToWaitForEndOfCurrentRamp |
protected boolean |
updatingState |
currentAction, FCSLOG, hasToWaitForEndOfAction, lock, scheduler| Constructor and Description |
|---|
AutochangerThreeOnlineClamps(AutochangerOnlineClampModule onlineClampXminus,
AutochangerOnlineClampModule onlineClampXplus,
AutochangerOnlineClampModule onlineClampYminus)
Create a AutochangerThreeOnlineClamps with 3 AutochangerOnlineClampModule.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction(FcsEnumerations.MobileItemAction action,
long delay)
aborts action actually running.
|
void |
closeAndLockClamps()
Closes and locks the online clamps.
|
void |
closeClamps()
Closes the 3 clamps with a small pressure.
|
StatusDataPublishedByAutochangerThreeClamps |
createStatusDataPublishedByThreeClamps()
Creates an object to be published on the status bus.
|
FcsEnumerations.LockStatus |
getLockStatus()
Return lockStatus
If lockStatus is being updated, wait until update completion else return immediately lockStatus.
|
void |
initModule() |
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action)
returns true if the action given as argument is completed.
|
boolean |
isCANDevicesReady()
Return true if the 3 onlineClamps hardware is ready.
|
boolean |
isClosed()
Returns true if LockStatus=CLOSED
|
boolean |
isInError()
Returns true if LockStatus=ERROR
|
boolean |
isInitialized()
Return true if the 3 onlineClamps hardware is initialized.
|
boolean |
isLocked()
Returns true if LockStatus=LOCKED
|
boolean |
isOpened()
Returns true if LockStatus=OPENED
|
void |
lockClamps()
Locks clamps : closed with a strong pressure (high current).
|
void |
openClamps()
Opens the 3 clamps with a small pressure.
|
void |
postAction(FcsEnumerations.MobileItemAction action) |
void |
publishData() |
void |
quickStopAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
startAction(FcsEnumerations.MobileItemAction action)
starts the action given as argument.
|
void |
unlockAndOpenClamps()
Unlock and open the online clamps.
|
void |
unlockClamps()
Unlocks clamps : slows down current sent to controller in order to decrease pressure on
the clamps.
|
void |
updateStateWithSensors(String[] hexaValues)
This methods updates lockStatus from the values return by the sensors.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted()
reads sensors, computes new lockStatus.
|
abort, abort, checkHardware, checkStarted, checkStopped, executeAction, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopgetNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSensorsraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarninggetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected volatile boolean updatingState
protected final Condition currentRampEnded
protected boolean hasToWaitForEndOfCurrentRamp
public AutochangerThreeOnlineClamps(AutochangerOnlineClampModule onlineClampXminus, AutochangerOnlineClampModule onlineClampXplus, AutochangerOnlineClampModule onlineClampYminus)
onlineClampXminus - onlineClampXplus - onlineClampYminus - public FcsEnumerations.LockStatus getLockStatus()
@Command(type=QUERY,
level=1,
description="Returns true if the 3 clamps are CLOSED.")
public boolean isLocked()
@Command(type=QUERY,
level=1,
description="Returns true if the 3 clamps are CLOSED.")
public boolean isClosed()
@Command(type=QUERY,
level=1,
description="Returns true if the 3 clamps are OPENED.")
public boolean isOpened()
@Command(type=QUERY,
level=1,
description="Returns true if one of the clamp is in error.")
public boolean isInError()
isInError in interface ControlledBySensorspublic void initModule()
initModule in class MobileItemModule@Command(type=QUERY,
level=0,
description="Return true if the 3 onlineClamps hardware is ready : controllers ready, controllers parameters checked and controllers configured.")
public boolean isInitialized()
@Command(type=ACTION,
level=0,
description="Closes and locks the online clamps.")
public void closeAndLockClamps()
FcsHardwareException@Command(type=ACTION,
level=0,
description="Unlock and open the online clamps.")
public void unlockAndOpenClamps()
FcsHardwareException@Command(type=ACTION,
level=1,
description="Close the 3 online clamps.")
public void closeClamps()
@Command(type=ACTION,
level=1,
description="Opens the 3 online clamps with a small pressure.")
public void openClamps()
@Command(type=ACTION,
level=1,
description="Locks clamps : closed with a strong pressure (high current).")
public void lockClamps()
@Command(type=ACTION,
level=1,
description="unlocks clamps : decreases current in controller to decrease pressure.")
public void unlockClamps()
@Command(type=QUERY,
level=0,
description="Return true if the 3 onlineClamps hardware is ready.")
public boolean isCANDevicesReady()
isCANDevicesReady in class MobileItemModulepublic boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModuleaction - public void updateStateWithSensorsToCheckIfActionIsCompleted()
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModulepublic void startAction(FcsEnumerations.MobileItemAction action)
MobileItemModulestartAction in class MobileItemModulepublic void abortAction(FcsEnumerations.MobileItemAction action, long delay)
MobileItemModuleabortAction in class MobileItemModulepublic void quickStopAction(FcsEnumerations.MobileItemAction action, long delay)
quickStopAction in class MobileItemModulepublic void postAction(FcsEnumerations.MobileItemAction action)
postAction in class MobileItemModulepublic StatusDataPublishedByAutochangerThreeClamps createStatusDataPublishedByThreeClamps()
public void publishData()
publishData in class MobileItemModule@Command(type=ACTION,
level=1,
description="Update state in reading sensors.")
public void updateStateWithSensors(String[] hexaValues)
hexaValues - Copyright © 2017 LSST. All rights reserved.