public class LoaderModule extends Object implements org.lsst.ccs.framework.HardwareController, FilterHolder, AlertRaiser, org.lsst.ccs.framework.HasLifecycle
alertSeparater| Constructor and Description |
|---|
LoaderModule() |
| 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.
|
void |
checkLoaderNotEmpty()
Check if the clamp can be closed.
|
void |
checkStarted()
CheckStarted is executed by completeInitialization when a first start has
failed.
|
StatusDataPublishedByLoader |
createStatusDataPublishedByLoader()
Creates an Object to be published on the STATUS bus.
|
LoaderCarrierModule |
getCarrier()
Returns carrier.
|
LoaderClampModule |
getClamp()
Returns clamp.
|
void |
initializeGateway() |
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.
|
void |
postStart()
Check that plutoGateway is booted and initialize plutoGateway.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckHardware, checkStoppedraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningpublic LoaderCarrierModule getCarrier()
public LoaderClampModule getClamp()
@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()
public void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecyclepublic void initializeGateway()
public void checkStarted()
checkStarted in interface org.lsst.ccs.framework.HardwareControllerpublic 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 FilterHolder@Command(type=QUERY,
level=1,
description="Print list of hardware with initialization information.")
public String printHardwareState()
Copyright © 2017 LSST. All rights reserved.