
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, controllerList, dataProviderDictionaryService, haltRequired, hardMovedByController, name, stopRequired, subsAGENT_HEARTBEAT_TASK, AGENT_RUNTIMEINFO_TASK, commandExecutorLock, currentAction, currentQueries, currentSignals, jvmShutdown, logBusHandler, stateService, treeComponentInitializedalertSeparator| Constructor and Description |
|---|
APCTestBench2CanBusMain(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, getMobilNameControllerNameMap, getSensorsMapPluggedOnPlutoGateway, getSubsystem, init, isHaltRequired, isInState, isStopRequired, listAcSensorsNames, listHardwareNames, listLoaderHardwareNames, listLoSensorsNames, postShutdown, publishData, signal, updateAgentState, updateAgentState, updateFCSStateToReady, updateGuigetLogHandler, getNumberCommandThreads, ping, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthbroadcastStatus, createHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCCSVersions, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getDistributionInfo, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, getStatusBroadcastPeriod, helper, initAgent, isConnectedToTheBuses, isInEngineeringMode, populateComponentLookup, preBuild, preInit, printComponentNodeTree, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearAlarm, getAlertSeparator, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNewprotected BridgeToHardware bridgeToLoader
public double temperature
public APCTestBench2CanBusMain(BridgeToHardware bridgeToLoader)
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 © 2022 LSST. All rights reserved.