
public class LoaderModule extends org.lsst.ccs.framework.Module implements org.lsst.ccs.framework.HardwareController, FilterHolder
| Constructor and Description |
|---|
LoaderModule(LoaderCarrierModule carrier,
LoaderClampModule clamp,
String plutoGatewayName,
RedondantSensors filterPresenceSensors,
RedondantSensors loaderOnCameraSensors)
Build a LoaderModule with a carrier, a clamp and sensors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkConditionsForCarrierMotion()
Checks if the loader carrier can move.
|
void |
checkConditionsForOpeningHooks()
Check if the clamp can be opened.
|
void |
checkConditionsForUnclampingHooks() |
void |
checkConnectedOnCamera()
Check if loader is connected on camera.
|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
Check that plutoGateway is booted and initialized.
|
void |
checkLoaderNotEmpty()
Check if the clamp can be closed.
|
void |
checkStarted()
CheckStarted is executed by completeInitialization when a first start has
failed.
|
void |
checkStopped()
This method is executed during a shutdown of the subystem to prevent a
shutdown when some hardware is moving.
|
StatusDataPublishedByLoader |
createStatusDataPublishedByLoader()
Creates an Object to be published on the STATUS bus.
|
LoaderCarrierModule |
getCarrier()
Returns carrier.
|
LoaderClampModule |
getClamp()
Returns clamp.
|
void |
initModule() |
boolean |
isAtHandoff()
This method returns true if the autochanger trucks are at HANDOFF position, false otherwise.
|
boolean |
isAtStandby()
This method returns true if the autochanger trucks are at STANDBY position, false otherwise.
|
boolean |
isAutochangerHoldingFilter()
Return true if the autochanger is holding the filter.
|
boolean |
isConnectedOnCamera()
Returns the boolean field atHandoff.
|
boolean |
isEmpty()
Returns the boolean field empty.
|
boolean |
isHoldingFilter()
Return true if a filter is present and it is held by the loader clamp.
|
boolean |
isInitialized() |
void |
loadFilterInCamera()
This command can be launched when a filter is in the loader and we want
to put in inside the camera.
|
void |
locateHardware()
This command has to be executed after the initialization phase and after
the checkHardware command.
|
String |
printHardwareState()
Print list of hardware with initialization information.
|
void |
publishData()
Publish Data on status bus for trending data base and GUIs.
|
void |
unloadFilterFromCamera()
This command can be launched when the loader is empty and we want to take
a filter from the camera.
|
void |
updateFCSStateToReady()
Update FCS state and FCS readyness state and publish on the status bus.
|
void |
updateStateAndCheckSensors() |
void |
updateStateWithSensors()
This methods updates the carrier and clamp state in reading all the
sensors.
|
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, setNObserverThreads, setObservables, setTickMillis, shutdownNow, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangesetParameterBulkpostInit, postShutdown, postStart, startpublic LoaderModule(LoaderCarrierModule carrier, LoaderClampModule clamp, String plutoGatewayName, RedondantSensors filterPresenceSensors, RedondantSensors loaderOnCameraSensors)
carrier - clamp - plutoGatewayName - filterPresenceSensors - loaderOnCameraSensors - public LoaderCarrierModule getCarrier()
public LoaderClampModule getClamp()
public void initModule()
initModule in class org.lsst.ccs.framework.Module@Command(type=QUERY, level=0, description="Return true if hardware (controllers and plutoGateway) is correctly initializedand homing of the controllers is done.") public boolean isInitialized()
@Command(type=QUERY, level=0, description="Return true if there is no filter in the loader. This command doesn\'t read again the sensors.") public boolean isEmpty()
@Command(type=QUERY, level=0, description="Return true if the loader is connected on the camera. This command doesn\'t read again the sensors.") public boolean isConnectedOnCamera()
@Command(type=QUERY, level=0, description="Return true if the autochanger is holding the filter. This command doesn\'t read again the sensors.") public boolean isAutochangerHoldingFilter()
FcsHardwareException@Command(type=QUERY, level=0, description="Return true if a filter is present and it is held by the loader clamp.") public boolean isHoldingFilter()
isHoldingFilter in interface FilterHolderFcsHardwareException@Command(type=ACTION, level=1, description="Attention ! this commands does the homing of the controllers and might move hardware. Initialize loader hardware.", alias="homing") public void locateHardware() throws org.lsst.ccs.HardwareException
org.lsst.ccs.HardwareExceptionpublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
throws org.lsst.ccs.HardwareException
checkHardware in interface org.lsst.ccs.framework.HardwareControllerorg.lsst.ccs.HardwareExceptionpublic void checkStarted()
throws org.lsst.ccs.HardwareException
checkStarted in interface org.lsst.ccs.framework.HardwareControllerorg.lsst.ccs.HardwareExceptionpublic void checkStopped()
throws org.lsst.ccs.HardwareException
checkStopped in interface org.lsst.ccs.framework.HardwareControllerorg.lsst.ccs.HardwareExceptionpublic void checkConnectedOnCamera()
RejectedCommandException - if not connected on camera@Command(type=QUERY, level=1, description="Check if the carrier can move.") public void checkConditionsForCarrierMotion()
@Command(type=QUERY, level=1, description="Check if the clamp can be opened.") public void checkConditionsForOpeningHooks()
FcsHardwareExceptionpublic void checkConditionsForUnclampingHooks()
@Command(type=QUERY, level=1, description="Check if the clamp can be closed.") public void checkLoaderNotEmpty()
FcsHardwareExceptionpublic void updateStateAndCheckSensors()
@Command(type=ACTION, level=1, description="Update clamp state in reading sensors.") public void updateStateWithSensors()
updateStateWithSensors in interface FilterHolderFcsHardwareException@Command(type=ACTION, level=1, description="Update FCS state and FCS readyness state and publishes on the status bus.") public void updateFCSStateToReady()
@Command(type=ACTION, level=1, description="Load a filter from the loader into the camera.") public void loadFilterInCamera()
@Command(type=ACTION, level=1, description="Unload a filter from the camera into the loader.") public void unloadFilterFromCamera()
public StatusDataPublishedByLoader createStatusDataPublishedByLoader()
public void publishData()
public boolean isAtHandoff()
FilterHolderisAtHandoff in interface FilterHolderpublic boolean isAtStandby()
FilterHolderisAtStandby in interface FilterHolderCopyright © 2017 LSST. All rights reserved.