public class AutochangerTwoLatches extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, FCSLOG, hasToWaitForEndOfAction, lock, name, 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, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckHardware, checkStartedraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningsendSignal, sendSignalWithTimeLimitpublic 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()
MobileItemModulemyDevicesReady in class MobileItemModulepublic 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()
MobileItemModuleupdateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModule@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)
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 boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModulepublic StatusDataPublishedByAutochangerTwoLatches createStatusDataPublishedByTwoLatches()
public void publishData()
publishData in class MobileItemModuleCopyright © 2017 LSST. All rights reserved.