public class AutochangerThreeOnlineClamps extends MobileItem implements ControlledBySensors
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, FCSLOG, hasToWaitForEndOfAction, lock, name, s, scheduleralertSeparater| Constructor and Description |
|---|
AutochangerThreeOnlineClamps(AutochangerOnlineClamp onlineClampXminus,
AutochangerOnlineClamp onlineClampXplus,
AutochangerOnlineClamp onlineClampYminus)
Create a AutochangerThreeOnlineClamps with 3 AutochangerOnlineClamp.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction(FcsEnumerations.MobileItemAction action,
long delay)
aborts action actually running.
|
void |
checkParametersToCloseClampsX() |
void |
checkParametersToOpenClampsX() |
void |
closeAndLockClamps()
Closes and locks the online clamps.
|
void |
closeClamps()
Closes the 3 clamps with a small pressure.
|
void |
closeClampsX() |
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.
|
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action)
returns true if the action given as argument is completed.
|
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).
|
boolean |
myDevicesReady()
Return true if the 3 onlineClamps hardware is ready.
|
void |
openClamps()
Opens the 3 clamps with a small pressure.
|
void |
openClampsX() |
void |
postAction(FcsEnumerations.MobileItemAction action) |
void |
publishData() |
void |
quickStopAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
readSensorsUntilActionCompleted(FcsEnumerations.MobileItemAction action)
read sensors until action is completed.
|
void |
setMinPeriod(int minPeriod) |
void |
startAction(FcsEnumerations.MobileItemAction action)
starts the action given as argument.
|
void |
testPeriodTask()
test periodicTask.
|
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(int[] hexaValues)
This methods updates lockStatus from the values return by the sensors.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted()
reads sensors, computes new lockStatus.
|
abort, abort, checkReadyForAction, checkStopped, executeAction, getAlertService, getHaltRequired, getName, getSubsystem, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSensors, getNameclearAlarm, getAlertService, getSubsystem, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningcheckHardware, checkStartedpublic AutochangerThreeOnlineClamps(AutochangerOnlineClamp onlineClampXminus, AutochangerOnlineClamp onlineClampXplus, AutochangerOnlineClamp onlineClampYminus)
onlineClampXminus - onlineClampXplus - onlineClampYminus - @ConfigurationParameterChanger public void setMinPeriod(int minPeriod)
public FcsEnumerations.LockStatus getLockStatus()
@Command(type=QUERY,
level=1,
description="Returns true if the 3 clamps are LOCKED.")
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 ControlledBySensors@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.",
timeout=15000)
public void closeAndLockClamps()
FcsHardwareException@Command(type=ACTION,
level=0,
description="Unlock and open the online clamps.",
timeout=15000)
public void unlockAndOpenClamps()
FcsHardwareExceptionpublic void testPeriodTask()
@Command(type=ACTION,
level=1,
description="Close the 3 online clamps.",
timeout=15000)
public void closeClamps()
@Command(type=ACTION,
description="close clamps X",
timeout=15000)
public void closeClampsX()
@Command(type=ACTION,
level=1,
description="Opens the 3 online clamps with a small pressure.",
timeout=15000)
public void openClamps()
@Command(type=ACTION,
description="open softly clampX",
timeout=15000)
public void openClampsX()
@Command(type=ACTION,
level=1,
description="Locks clamps : closed with a strong pressure (high current).",
timeout=15000)
public void lockClamps()
@Command(type=ACTION,
level=1,
description="unlocks clamps : decreases current in controller to decrease pressure.",
timeout=15000)
public void unlockClamps()
@Command(type=QUERY,
level=0,
description="Return true if the 3 onlineClamps hardware is ready.")
public boolean myDevicesReady()
myDevicesReady in class MobileItempublic boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemaction - public void updateStateWithSensorsToCheckIfActionIsCompleted()
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItempublic void startAction(FcsEnumerations.MobileItemAction action)
MobileItemstartAction in class MobileItempublic void abortAction(FcsEnumerations.MobileItemAction action, long delay)
MobileItemabortAction in class MobileItempublic void quickStopAction(FcsEnumerations.MobileItemAction action, long delay)
quickStopAction in class MobileItempublic void postAction(FcsEnumerations.MobileItemAction action)
postAction in class MobileItempublic StatusDataPublishedByAutochangerThreeClamps createStatusDataPublishedByThreeClamps()
public void publishData()
publishData in class MobileItem@Command(type=ACTION,
level=1,
description="Update state in reading sensors.")
public void updateStateWithSensors(int[] hexaValues)
hexaValues - @Command(type=QUERY) public void checkParametersToOpenClampsX()
@Command(type=QUERY) public void checkParametersToCloseClampsX()
public void readSensorsUntilActionCompleted(FcsEnumerations.MobileItemAction action)
action - Copyright © 2017 LSST. All rights reserved.