
public class AutochangerTwoLatches extends MobileItemModule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updatingState |
currentAction, FCSLOG, hasToWaitForEndOfAction, lock, scheduler| 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)
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.
|
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.
|
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(String[] 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, checkHardware, checkStarted, checkStopped, executeAction, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopgetNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, 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, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarninggetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangesetParameterBulkpublic AutochangerTwoLatches(AutochangerLatchModule latchXminus, AutochangerLatchModule 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 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 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(String[] 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.