
public class APCTestBench2CanBusMain extends MainModule
| Modifier and Type | Field and Description |
|---|---|
protected BridgeToHardware |
bridgeToLoader
this bridge is to communicate with the canbus1 on the PC104
|
double |
temperature |
bridge, dataProviderDictionaryService, haltRequired, name, stopRequired, subsalertSeparator| Constructor and Description |
|---|
APCTestBench2CanBusMain(BridgeToHardware bridge,
BridgeToHardware bridgeToLoader)
Build a main module for APC testbench with 2 CANbus.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectLoader() |
void |
disconnectLoader() |
void |
initializeHardware()
initialize hardware after initialization.
|
boolean |
isChangerConnected() |
boolean |
isChangerReady() |
boolean |
isLoaderConnected() |
boolean |
isLoaderReady() |
double |
readTemperature()
Read temperature.
|
String |
turnOffLED()
Turn OFF the Led.
|
String |
turnOnLED()
To turn the LED on.
|
void |
updateStateWithSensors()
Update state in reading sensors.
|
allDevicesBooted, build, getAlertService, getFilterNames, getFilterReadinessState, getName, getSubsystem, isHaltRequired, isInState, isStopRequired, listHardwareNames, listLoaderHardwareNames, postShutdown, publishData, signal, updateAgentState, updateAgentState, updateFCSStateToReady, updateGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearAlarm, getAlertSeparator, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNewprotected BridgeToHardware bridgeToLoader
public double temperature
public APCTestBench2CanBusMain(BridgeToHardware bridge, BridgeToHardware bridgeToLoader)
bridge - bridgeToLoader - @Command(type=QUERY, level=0, description="Return true if the changer is connected.") public boolean isChangerConnected()
@Command(type=QUERY, level=0, description="Return true if the loader is connected.") public boolean isLoaderConnected()
@Command(type=QUERY, level=0, description="Return true if the hardware of the changer is ready.") public boolean isChangerReady()
@Command(type=QUERY, level=0, description="Return true if the hardware of the loader is ready.") public boolean isLoaderReady()
@Command(type=ACTION, level=0, description="Disconnect the (fake) loader.") public void disconnectLoader() throws InterruptedException
InterruptedException@Command(type=ACTION, level=0, description="Connect the (fake) loader.") public void connectLoader()
@Command(type=QUERY, level=0, description="Read temperature.") public double readTemperature() throws LoaderDisconnectedException
FcsHardwareExceptionLoaderDisconnectedException@Command(type=ACTION, level=0, description="Turn ON the Led.") public String turnOnLED()
SDORequestExceptionHardwareNotDetectedException@Command(type=ACTION, level=0, description="Turn OFF the Led.") public String turnOffLED()
FcsHardwareExceptionpublic void updateStateWithSensors()
MainModuleupdateStateWithSensors in class MainModulepublic void initializeHardware()
MainModuleinitializeHardware in class MainModuleCopyright © 2021 LSST. All rights reserved.