public class AutochangerTwoLatches extends MobileItem
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, FCSLOG, hasToWaitForEndOfAction, lock, name, s, scheduleralertSeparater| Constructor and Description |
|---|
AutochangerTwoLatches(AutochangerLatch latchXminus,
AutochangerLatch latchXplus)
Build an Object AutochangerTwoLatches from 2 AutochangerLatch.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction(FcsEnumerations.MobileItemAction action,
long delay)
aborts action actually running.
|
void |
close()
Close latches
|
StatusDataPublishedByAutochangerTwoLatches |
createStatusDataPublishedByTwoLatches()
Creates an object to be published on the STATUS bus by AutochangerTwoLatches.
|
FcsEnumerations.FilterPresenceStatus |
getFilterPresenceStatus()
return filterPresenceStatus
|
long |
getTimeoutForClosing()
Return the max time for closing in millisecond.
|
long |
getTimeoutForOpening()
Return the max time for opening.
|
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action) |
boolean |
isClosed()
Return if both latches are CLOSED.
|
boolean |
isEmpty()
Returns true if there is no filter is latches.
|
boolean |
isHoldingFilter()
Return true if autochanger is holding a filter.
|
boolean |
isInError()
Returns true if one of the latches is in ERROR state.
|
boolean |
isInitialized()
Returns true if the 2 latches controllers are initialized.
|
boolean |
isOpened()
Return if both latches are OPENED.
|
boolean |
myDevicesReady()
Return True if all CAN open devices useful for this MobileItemMobile are ready for an action.
|
void |
open()
Open the 2 latches.
|
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 |
updateStateAndCheckSensors()
Checks sensors.
|
void |
updateStateWithSensors(int[] readHexaValues)
Update latches lockStatus from an array of hexa values read from the
sensors.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted()
reads sensors or any device and updates state from sensors
it can be also reading a position or a current on a motor controller.
|
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, waitcheckHardware, checkStartedclearAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningpublic AutochangerTwoLatches(AutochangerLatch latchXminus, AutochangerLatch latchXplus)
latchXminus - latchXplus - @Command(type=QUERY,
level=1,
description="Returns true if the 2 latches are initialized.")
public boolean isInitialized()
@Command(type=QUERY,
description="return filterPresenceStatus")
public FcsEnumerations.FilterPresenceStatus getFilterPresenceStatus()
@Command(type=QUERY,
level=1,
description="Return the max time for closing in millisecond.")
public long getTimeoutForClosing()
@Command(type=QUERY,
level=1,
description="Return the max time for opening in millisecond.")
public long getTimeoutForOpening()
@Command(type=QUERY,
level=1,
description="Returns true if both latches are CLOSED.")
public boolean isClosed()
@Command(type=QUERY,
level=1,
description="Returns true if both latches are OPENED.")
public boolean isOpened()
@Command(type=QUERY,
level=1,
description="Returns true if one of the latches is in ERROR state.")
public boolean isInError()
@Command(type=QUERY,
level=1,
description="Returns true if there is no filter is latches.")
public boolean isEmpty()
@Command(type=QUERY,
level=1,
description="Return true if autochanger is holding a filter.")
public boolean isHoldingFilter()
public boolean myDevicesReady()
MobileItemmyDevicesReady in class MobileItempublic void updateStateAndCheckSensors()
FcsHardwareException - if some latch sensors are in error or
if latches state is not equal on both side of the filter.FcsHardwareExceptionpublic void updateStateWithSensors(int[] readHexaValues)
readHexaValues - public void updateStateWithSensorsToCheckIfActionIsCompleted()
MobileItemupdateStateWithSensorsToCheckIfActionIsCompleted in class MobileItem@Command(type=ACTION,
level=1,
description="Close latches.")
public void close()
FcsHardwareException@Command(type=ACTION,
level=1,
description="Open both latches.")
public void open()
FcsHardwareExceptionpublic 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 boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItempublic StatusDataPublishedByAutochangerTwoLatches createStatusDataPublishedByTwoLatches()
public void publishData()
publishData in class MobileItemCopyright © 2017 LSST. All rights reserved.