public class AutoChangerModule extends BasicAutoChangerModule
carousel, closingLatches, latchesState, openingLatches, publishedByAutoChangerOutputName, state, timeoutForClosingLatches, timeoutForOpeningLatches, timeToWaitForCompleteClose, timeToWaitForCompleteOpen, truckXminus, truckXplus, updatingLatchesitemMoving, lock, motionCompleted| Constructor and Description |
|---|
AutoChangerModule(FilterLatch onlineClamp,
double trucksPositionOnline,
double trucksPositionAtStandby,
double trucksPositionSwapout,
Motor motor,
String moduleName,
int aTickMillis,
FilterLatchModule latchXminus,
FilterLatchModule latchXplus,
TruckModule truckXminus,
TruckModule truckXplus,
String railsSensorsDIOName,
String filterSensorsDIOName) |
| Modifier and Type | Method and Description |
|---|---|
String |
closeOnlineClamp()
when a filter is at online position it is locked by a clamp.
|
Filter |
getFilterOnline() |
String |
getFilterOnlineName() |
Motor |
getMotor() |
FilterLatch |
getOnlineClamp() |
StatusDataPublishedByAutoChanger |
getStatusData() |
double |
getTrucksPosition() |
double |
getTrucksPositionAtStandby() |
double |
getTrucksPositionOnline() |
double |
getTrucksPositionSwapout() |
String |
goToPosition(double requiredPosition)
This method moves the autochanger trucks to a position given as a parameter.
|
String |
goToStandback() |
String |
goToStandby() |
void |
initModule() |
boolean |
isAtStandby() |
boolean |
isMoving() |
boolean |
isMovingToStandback() |
boolean |
isMovingToStandby() |
void |
locateTrucks()
This method has to be executed at the FCS startup.
|
String |
moveFilterToOnline(Filter aFilter) |
String |
moveFilterToStandback(Filter aFilter) |
String |
moveFilterToStandby(Filter aFilter) |
String |
openOnlineClamp()
when a filter is at online position it is locked by a clamp.
|
void |
publishDataAndNotifyObservers() |
void |
setMotor(Motor motor) |
void |
setOnlineClamp(FilterLatch onlineClamp) |
void |
setTrucksPositionAtStandby(double trucksPositionAtStandby) |
void |
setTrucksPositionOnline(double trucksPositionOnline) |
void |
setTrucksPositionSwapout(double trucksPositionSwapout) |
String |
stop() |
void |
updateStateWithSensors() |
checkPreConditionsForTrucksMotion, closeLatchesAtStandby, getFilterOnTrucks, getFilterOnTrucksName, getFilterSensorsDIO, getFilterSensorsDIOName, getLatchesState, getLatchXminus, getLatchXplus, getRailsSensorsDIO, getRailsSensorsDIOName, getState, getTrucksLocation, getTruckXminus, getTruckXplus, grabFilterAtStandby, isActionCompleted, isAtStandback, isHoldingFilterAtStandback, isHoldingFilterAtStandby, isTrucksEmpty, openLatchesAtStandby, postAction, processUpdate, setFilterOnTrucks, setFilterSensorsDIOName, setRailsSensorsDIOName, setState, setTimeoutForClosingLatches, setTimeoutForOpeningLatches, setTimeToWaitForCompleteClose, setTimeToWaitForCompleteOpen, setTrucksEmpty, startAction, toString, ungrabFilterAtStandby, updateLatchesStateWithSensors, updateStateWithSensorsToCheckIfActionIsCompleted, updateTrucksLocationWithSensorsexecuteAction, readSensorsUntilActionIsCompleted, shutdownNowalias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic AutoChangerModule(FilterLatch onlineClamp, double trucksPositionOnline, double trucksPositionAtStandby, double trucksPositionSwapout, Motor motor, String moduleName, int aTickMillis, FilterLatchModule latchXminus, FilterLatchModule latchXplus, TruckModule truckXminus, TruckModule truckXplus, String railsSensorsDIOName, String filterSensorsDIOName)
public void initModule()
initModule in class BasicAutoChangerModulepublic StatusDataPublishedByAutoChanger getStatusData()
getStatusData in class BasicAutoChangerModulepublic String closeOnlineClamp() throws org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic String openOnlineClamp() throws org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic FilterLatch getOnlineClamp()
public void setOnlineClamp(FilterLatch onlineClamp)
public void publishDataAndNotifyObservers()
publishDataAndNotifyObservers in class BasicAutoChangerModulepublic String goToPosition(double requiredPosition) throws IllegalArgumentException, org.lsst.ccs.bus.BadCommandException
requiredPosition - the position the trucks will have at the end of the
execution this method if every thing works fine.
It implies the autochanger motor.IllegalArgumentExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic String stop()
public String moveFilterToOnline(Filter aFilter) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic String moveFilterToStandby(Filter aFilter) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
moveFilterToStandby in interface AutoChangermoveFilterToStandby in class BasicAutoChangerModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic Filter getFilterOnline()
public String getFilterOnlineName()
public double getTrucksPosition()
public double getTrucksPositionAtStandby()
public double getTrucksPositionOnline()
public double getTrucksPositionSwapout()
public void locateTrucks()
public void setTrucksPositionAtStandby(double trucksPositionAtStandby)
public void setTrucksPositionOnline(double trucksPositionOnline)
public void setTrucksPositionSwapout(double trucksPositionSwapout)
public Motor getMotor()
public void setMotor(Motor motor)
public boolean isMoving()
isMoving in class BasicAutoChangerModulepublic boolean isAtStandby()
isAtStandby in interface AutoChangerisAtStandby in class BasicAutoChangerModulepublic String goToStandback() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
goToStandback in class BasicAutoChangerModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic String goToStandby() throws org.lsst.ccs.bus.BadCommandException
goToStandby in class BasicAutoChangerModuleorg.lsst.ccs.bus.BadCommandExceptionpublic String moveFilterToStandback(Filter aFilter) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
moveFilterToStandback in class BasicAutoChangerModuleorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic boolean isMovingToStandback()
isMovingToStandback in class BasicAutoChangerModulepublic boolean isMovingToStandby()
isMovingToStandby in class BasicAutoChangerModulepublic void updateStateWithSensors()
throws HardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
updateStateWithSensors in class BasicAutoChangerModuleHardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionCopyright © 2014 LSST. All Rights Reserved.