public class LoaderModule
extends org.lsst.ccs.framework.Module
| Constructor and Description |
|---|
LoaderModule(String moduleName,
int aTickMillis,
LoaderCarrierModule carrier,
LoaderClampModule clamp,
String plutoGatewayName,
NumericSensor filterPresenceSensor,
NumericSensor loaderOnCameraPresenceSensor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPreConditionsForCarrierMotion() |
boolean |
checkPreConditionsForOpeningHooks() |
String |
clampHooks()
This method closes the clamps strongly.
|
String |
closeHooks()
This method closes the clamps.
|
LoaderCarrierModule |
getCarrier() |
LoaderClampModule |
getClamp() |
void |
initializeHardware() |
void |
initModule() |
boolean |
isAutochangerHoldingFilter() |
boolean |
isCarrierAtStoragePosition() |
boolean |
isConnectedOnCamera()
Returns the boolean field atHandoff.
|
boolean |
isEmpty()
Returns the boolean field empty.
|
boolean |
isHardwareReady() |
boolean |
isHoldingAFilter() |
boolean |
isMoving() |
boolean |
isOnCamera() |
String |
listHooks() |
String |
listSensorsValues() |
void |
moveToHandoff()
Moves the loader carrier to the handoff position.
|
void |
moveToStorage()
Moves the loader carrier to the storage position.
|
String |
openHooks()
This method opens the clamp.
|
void |
test() |
void |
tick() |
void |
updateStateWithSensors()
This methods updates the carrier and clamp state in reading all the sensors.
|
alias, change, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, injectResources, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, start, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic LoaderModule(String moduleName, int aTickMillis, LoaderCarrierModule carrier, LoaderClampModule clamp, String plutoGatewayName, NumericSensor filterPresenceSensor, NumericSensor loaderOnCameraPresenceSensor)
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic boolean isHardwareReady()
@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()
@Command(type=QUERY,
level=0,
description="Return true if a filter is there and it is held by the clamp.")
public boolean isHoldingAFilter()
throws SDORequestException,
org.lsst.ccs.bus.BadCommandException,
FcsHardwareException
SDORequestExceptionorg.lsst.ccs.bus.BadCommandExceptionFcsHardwareException@Command(type=QUERY,
level=0,
description="Return true if no filter is in the loader.")
public boolean isMoving()
public LoaderClampModule getClamp()
public LoaderCarrierModule getCarrier()
public boolean isCarrierAtStoragePosition()
@Command(type=QUERY,
level=0,
description="Returns true if loader is connected to the camera.")
public boolean isOnCamera()
throws FcsHardwareException
FcsHardwareExceptionpublic void initializeHardware()
throws FcsHardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
org.lsst.ccs.bus.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(level=1,
description="Return true if the carrier can move.",
type=QUERY)
public boolean checkPreConditionsForCarrierMotion()
throws SDORequestException,
org.lsst.ccs.bus.BadCommandException,
FcsHardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
SDORequestExceptionorg.lsst.ccs.bus.BadCommandExceptionFcsHardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionException@Command(level=1,
type=QUERY,
description="Check if the clamp can be open.")
public boolean checkPreConditionsForOpeningHooks()
throws SDORequestException,
org.lsst.ccs.bus.BadCommandException,
FcsHardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
SDORequestExceptionorg.lsst.ccs.bus.BadCommandExceptionFcsHardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionException@Command(type=ACTION,
level=1,
description="Close hooks.")
public String closeHooks()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
FcsHardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareException@Command(type=ACTION,
level=1,
description="Clamp hooks.")
public String clampHooks()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
FcsHardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareException@Command(level=1,
type=ACTION,
description="Open the hooks")
public String openHooks()
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
FcsHardwareException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareException@Command(level=1,
description="Move the loader carrier to HANDOFF position",
type=ACTION)
public void moveToHandoff()
throws org.lsst.ccs.bus.BadCommandException,
FcsHardwareException,
SDORequestException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandExceptionFcsHardwareExceptionSDORequestExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionException@Command(type=ACTION,
level=1,
description="Move the loader carrier to STORAGE position")
public void moveToStorage()
throws org.lsst.ccs.bus.BadCommandException,
FcsHardwareException,
SDORequestException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
org.lsst.ccs.bus.BadCommandExceptionFcsHardwareExceptionSDORequestExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionException@Command(type=ACTION,
level=1,
description="Update clamp state in reading sensors.")
public void updateStateWithSensors()
throws FcsHardwareException
FcsHardwareException@Command(type=QUERY,
level=0,
description="List and display info on the hooks.")
public String listHooks()
@Command(type=QUERY,
level=1,
description="List and display hooks sensors values.")
public String listSensorsValues()
public void test()
Copyright © 2014 LSST. All rights reserved.