public class AutochangerTwoLatches extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, FCSLOG, haltRequired, hasToWaitForEndOfAction, lock, motionCompleted, moving, stopRequired| Constructor and Description |
|---|
AutochangerTwoLatches(AutochangerLatchModule latchXminus,
AutochangerLatchModule latchXplus)
Build an Object AutochangerTwoLatches from 2 AutochangerLatchModule.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction(FcsEnumerations.MobileItemAction action,
long delay) |
String |
close()
Close latches
|
StatusDataPublishedByAutochangerTwoLatches |
createStatusDataPublishedByTwoLatches() |
AutochangerLatchModule |
getLatchXminus() |
AutochangerLatchModule |
getLatchXplus() |
StatusDataPublishedByAutochangerTwoLatches |
getStatusData() |
long |
getTimeoutForClosing()
Return the max time for closing in millisecond.
|
long |
getTimeoutForOpening()
Return the max time for opening.
|
void |
initModule() |
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action) |
boolean |
isCANDevicesReady() |
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 |
isLocked()
Return if both latches are LOCKED.
|
boolean |
isUnlocked()
Return if both latches are UNLOCKED.
|
String |
open()
Open the 2 latches.
|
void |
postAction(FcsEnumerations.MobileItemAction action) |
void |
publishData() |
void |
quickStopAction(FcsEnumerations.MobileItemAction action,
long delay) |
void |
startAction(FcsEnumerations.MobileItemAction action) |
void |
updateStateWithSensors()
This methods updates the whole autochanger state in reading all the
sensors.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted() |
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, waitraiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarninggetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic AutochangerTwoLatches(AutochangerLatchModule latchXminus, AutochangerLatchModule latchXplus)
latchXminus - latchXplus - @Command(type=QUERY,
level=1,
description="Returns true if the 2 latches are initialized.")
public boolean isInitialized()
public AutochangerLatchModule getLatchXminus()
public AutochangerLatchModule getLatchXplus()
@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 LOCKED.")
public boolean isLocked()
@Command(type=QUERY,
level=1,
description="Returns true if both latches are UNLOCKED.")
public boolean isUnlocked()
@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 void initModule()
initModule in class MobileItemModulepublic boolean isCANDevicesReady()
isCANDevicesReady in class MobileItemModule@Command(type=ACTION,
level=1,
description="Update autochanger state in reading sensors.")
public void updateStateWithSensors()
FcsHardwareExceptionpublic void updateStateWithSensorsToCheckIfActionIsCompleted()
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModule@Command(type=ACTION,
level=1,
description="Close latches.")
public String close()
FcsHardwareException@Command(type=ACTION,
level=1,
description="Open both latches.")
public String open()
FcsHardwareExceptionpublic void startAction(FcsEnumerations.MobileItemAction action)
startAction in class MobileItemModulepublic void abortAction(FcsEnumerations.MobileItemAction action, long delay)
abortAction 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 getStatusData()
public StatusDataPublishedByAutochangerTwoLatches createStatusDataPublishedByTwoLatches()
public void publishData()
publishData in class MobileItemModuleCopyright © 2016 LSST. All rights reserved.