|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.lsst.ccs.framework.Module
org.lsst.ccs.subsystems.fcs.common.MobileItemModule
org.lsst.ccs.subsystems.fcs.BasicAutoChangerModule
public abstract class BasicAutoChangerModule
An abstract changer module without a fliprail, without online clamp, and without a motor. This Module is in charge of the 2 latches which hold a filter in the autochanger. This basic autochanger is used in single filter test and will be used with the final hardware too. It extends MobileItemModule for the actions which can be applied to the 2 latches : OPENLATCHES and CLOSELATCHES.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module |
|---|
org.lsst.ccs.framework.Module.ValueUpdate |
| Nested classes/interfaces inherited from interface org.lsst.ccs.framework.Configurable |
|---|
org.lsst.ccs.framework.Configurable.Environment |
| Field Summary | |
|---|---|
protected CarouselModule |
carousel
|
protected boolean |
closingLatches
|
protected FcsEnumerations.LockStatus |
latchesState
|
protected boolean |
openingLatches
|
static String |
publishedByAutoChangerOutputName
|
protected ModuleState |
state
|
protected long |
timeoutForClosingLatches
|
protected long |
timeoutForOpeningLatches
|
protected long |
timeToWaitForCompleteClose
When we close the Latches, after the numeric sensors have detected that the latches are closed, we want to wait some time to be sure that the latches are really closed. |
protected long |
timeToWaitForCompleteOpen
When we open the Latches, after the numeric sensors have detected that the latches are opened, we want to wait some time to be sure that the latches are really opened. |
protected TruckModule |
truckXminus
The truck on side X- |
protected TruckModule |
truckXplus
The truck on side X+ |
protected boolean |
updatingLatches
|
| Fields inherited from class org.lsst.ccs.subsystems.fcs.common.MobileItemModule |
|---|
itemMoving, lock, motionCompleted |
| Fields inherited from class org.lsst.ccs.framework.Module |
|---|
environment, log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
BasicAutoChangerModule()
|
|
| Methods inherited from class org.lsst.ccs.subsystems.fcs.common.MobileItemModule |
|---|
cancelReadingSensors, executeAction, readSensorsUntilActionIsCompleted, shutdownNow, waitForEndOfAction |
| Methods inherited from class org.lsst.ccs.framework.Module |
|---|
alias, change, checkHardware, dropConfigurationContext, getAvailableCommands, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, start, startTicking, tick, update |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.lsst.ccs.subsystems.fcs.common.AutoChanger |
|---|
getTrucksPosition, goToPosition, locateTrucks, moveFilterToOnline, stop |
| Field Detail |
|---|
protected CarouselModule carousel
protected TruckModule truckXminus
protected TruckModule truckXplus
public static String publishedByAutoChangerOutputName
protected volatile ModuleState state
protected volatile FcsEnumerations.LockStatus latchesState
protected volatile boolean updatingLatches
protected volatile boolean closingLatches
protected volatile boolean openingLatches
protected long timeoutForOpeningLatches
protected long timeoutForClosingLatches
protected long timeToWaitForCompleteClose
protected long timeToWaitForCompleteOpen
| Constructor Detail |
|---|
public BasicAutoChangerModule()
| Method Detail |
|---|
public CompactIOModule getRailsSensorsDIO()
public void setRailsSensorsDIO(CompactIOModule railsSensorsDIO)
public CompactIOModule getFilterSensorsDIO()
public void setFilterSensorsDIO(CompactIOModule filterSensorsDIO)
public Filter getFilterOnTrucks()
getFilterOnTrucks in interface AutoChangerpublic ModuleState getState()
public void setState(ModuleState state)
state - the state to setpublic FilterLatchModule getLatchXminus()
public void setLatchXminus(FilterLatchModule latchXminus)
public FilterLatchModule getLatchXplus()
public void setLatchXplus(FilterLatchModule latchXplus)
public TruckModule getTruckXminus()
public void setTruckXminus(TruckModule truckXminus)
public TruckModule getTruckXplus()
public void setTruckXplus(TruckModule truckXplus)
public boolean isTrucksEmpty()
public void setTrucksEmpty(boolean isEmpty)
public void setFilterOnTrucks(Filter filterOnTrucks)
public String getFilterOnTrucksName()
public String getFilterSensorsDIOName()
public void setFilterSensorsDIOName(String filterSensorsDIOName)
public String getRailsSensorsDIOName()
public void setRailsSensorsDIOName(String railsSensorsDIOName)
public long getTimeToWaitForCompleteClose()
public void setTimeToWaitForCompleteClose(long timeToWaitForCompleteClose)
public long getTimeToWaitForCompleteOpen()
public void setTimeToWaitForCompleteOpen(long timeToWaitForCompleteOpen)
public long getTimeoutForClosingLatches()
public void setTimeoutForClosingLatches(long timeoutForClosingLatches)
public long getTimeoutForOpeningLatches()
public void setTimeoutForOpeningLatches(long timeoutForOpeningLatches)
public abstract boolean isMovingToStandback()
public abstract boolean isMovingToStandby()
public void initModule()
initModule in class org.lsst.ccs.framework.Module
public void processUpdate(Observable source,
org.lsst.ccs.framework.Module.ValueUpdate v)
processUpdate in class org.lsst.ccs.framework.Modulepublic StatusDataPublishedByBasicAutoChanger getStatusData()
public void publishDataAndNotifyObservers()
public String toString()
toString in class Objectpublic abstract boolean isMoving()
public abstract String goToStandby()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException,
CanOpenException
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareException
CanOpenException
public abstract String goToStandback()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException,
CanOpenException
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareException
CanOpenException
public abstract String moveFilterToStandby(Filter aFilter)
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException,
CanOpenException
moveFilterToStandby in interface AutoChangerorg.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareException
CanOpenException
public abstract String moveFilterToStandback(Filter aFilter)
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException,
CanOpenException
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareException
CanOpenException
public abstract void updateStateWithSensors()
throws HardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareException
org.lsst.ccs.bus.ErrorInCommandExecutionException
public void checkPreConditionsForTrucksMotion()
throws org.lsst.ccs.bus.BadCommandException,
HardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandException
HardwareException
org.lsst.ccs.bus.ErrorInCommandExecutionException
public String grabFilterAtStandby(Filter filter)
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException,
CanOpenException
grabFilterAtStandby in interface AutoChangerorg.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareException
CanOpenException
public String ungrabFilterAtStandby()
throws org.lsst.ccs.bus.ErrorInCommandExecutionException,
org.lsst.ccs.bus.BadCommandException,
HardwareException,
CanOpenException
ungrabFilterAtStandby in interface AutoChangerorg.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandException
HardwareException
CanOpenExceptionpublic FcsEnumerations.LockStatus getLatchesState()
public boolean isHoldingFilterAtStandby()
public boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModulepublic void postAction(FcsEnumerations.MobileItemAction action)
postAction in class MobileItemModule
public void startAction(FcsEnumerations.MobileItemAction action)
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException
startAction in class MobileItemModuleorg.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareException
public void updateStateWithSensorsToCheckIfActionIsCompleted()
throws HardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModuleHardwareException
org.lsst.ccs.bus.ErrorInCommandExecutionException
@Deprecated
public String openLatchesAtStandbyOneAfterOne()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareException
public String openLatchesAtStandby()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException
openLatchesAtStandby in interface AutoChangerorg.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareError
HardwareException
@Deprecated
public String closeLatchesAtStandbyOneAfterOne()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException
org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandException
HardwareException
public String closeLatchesAtStandby()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException
closeLatchesAtStandby in interface AutoChangerorg.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareError
HardwareException
public void updateLatchesStateWithSensors()
throws HardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareException
org.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic FcsEnumerations.AutoChangerTrucksLocation getTrucksLocation()
public boolean isAtStandby()
isAtStandby in interface AutoChangerpublic boolean isAtStandback()
public void updateTrucksLocationWithSensors()
throws org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.ErrorInCommandExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||