public class AutoChangerModule
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController
| Constructor and Description |
|---|
AutoChangerModule(String name,
int tickMillis,
String plutoGatewayName,
NumericSensor loaderConnectedSensor0,
NumericSensor loaderConnectedSensor1,
AutoChangerTrucksModule trucks,
AutochangerTwoLatches latches) |
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware() |
boolean |
checkPreConditionsForClosingLatches() |
boolean |
checkPreConditionsForOpeningLatches() |
void |
checkStarted() |
void |
checkStopped()
This method is executed during a shutdown of the subystem to prevent a shutdown
when some hardware is moving.
|
int |
getHandoffPosition() |
AutochangerTwoLatches |
getLatches() |
NumericSensor |
getLoaderConnectedSensor0() |
NumericSensor |
getLoaderConnectedSensor1() |
int |
getOnlinePosition() |
PlutoGatewayModule |
getPlutoGateway() |
int |
getStandbyPosition() |
StatusDataPublishedByAutoChanger |
getStatusData() |
AutoChangerTrucksModule |
getTrucks() |
void |
initModule() |
boolean |
isHardwareReady() |
boolean |
isInitialized() |
boolean |
isLoaderConnected()
Returns the boolean field loaderConnected.
|
boolean |
isLoaderConnectedSensorsInError() |
void |
publishData()
Publish Data on status bus for trending data base and GUIs.
|
void |
tick() |
void |
updateStateWithSensors()
This methods updates the trucks, latches and online clamps state in reading all the sensors.
|
alias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkpublic AutoChangerModule(String name, int tickMillis, String plutoGatewayName, NumericSensor loaderConnectedSensor0, NumericSensor loaderConnectedSensor1, AutoChangerTrucksModule trucks, AutochangerTwoLatches latches)
public NumericSensor getLoaderConnectedSensor0()
public NumericSensor getLoaderConnectedSensor1()
@Command(type=QUERY,
level=1,
description="Return false if the 2 redondant loader sensors are equal.")
public boolean isLoaderConnectedSensorsInError()
public int getHandoffPosition()
public int getOnlinePosition()
public int getStandbyPosition()
public AutochangerTwoLatches getLatches()
public AutoChangerTrucksModule getTrucks()
public PlutoGatewayModule getPlutoGateway()
@Command(type=QUERY,
level=0,
description="Return true if the loader is connected to the camera. This command doesn\'t read again the sensors.")
public boolean isLoaderConnected()
public void initModule()
initModule in class org.lsst.ccs.framework.Module@Command(type=QUERY,
level=0,
description="Return true if all autochanger hardware is initialized and bridge is hardwareReady.")
public boolean isHardwareReady()
@Command(type=QUERY,
level=0,
description="Return true if all autochanger hardware is initialized.")
public boolean isInitialized()
public 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.HardwareException@Command(type=QUERY,
level=1,
description="Check if the latches can be opened.")
public boolean checkPreConditionsForOpeningLatches()
throws SDORequestException,
org.lsst.ccs.bus.BadCommandException,
FcsHardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
SDORequestExceptionorg.lsst.ccs.bus.BadCommandExceptionFcsHardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionException@Command(type=QUERY,
level=1,
description="Check if the latches can be closed.")
public boolean checkPreConditionsForClosingLatches()
throws FcsHardwareException,
org.lsst.ccs.bus.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.bus.BadCommandException@Command(type=ACTION,
level=1,
description="Update clamp state in reading sensors.")
public void updateStateWithSensors()
throws FcsHardwareException
FcsHardwareExceptionpublic void tick()
tick in class org.lsst.ccs.framework.Modulepublic StatusDataPublishedByAutoChanger getStatusData()
public void publishData()
Copyright © 2015 LSST. All rights reserved.