public class SimuPlutoGateway extends PlutoGateway implements org.lsst.ccs.framework.HasLifecycle
lock, readValues, sensorsMap, updatingValues, valueUpdatedbooted, errorHistory, errorRegister, inError, initialized, name, nodeID, serialNB, subs, tcpProxyalertSeparater| Constructor and Description |
|---|
SimuPlutoGateway(int nodeID,
String serialNB)
Build a new SimuPlutoGateway with a CANopen node ID and a serial number.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
readNewValues()
returns simulated readValues for the gateway.
|
int[] |
readValuesFromPDO()
Return new simulated values returned by PDO.
|
void |
replaceValues(DigitalSensor sensor,
boolean on)
Replace simulated device values in order to force simulated sensor to be on or off depending on the
argument on given as argument.
|
createStatusDataPublishedByPlutoGatewayModule, getValues, init, publishData, toString, updateMySensorsValues, updateValuesconfigAsHeartbeatConsumer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayErrorHistory, displayErrorRegister, doInitializePDOs, getAlertService, getErrorHistory, getErrorRegister, getName, getNodeID, getSerialNB, getSubsystem, getTcpProxy, initializeAndCheckHardware, isBooted, isInError, isInitialized, onEmergencyMessage, printSerialNumber, readErrorHistory, readErrorRegister, readNumberOfErrors, readSDO, resetError, saveParameters, setBooted, updateFromPDO, writeSDOclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuild, init, postBuild, postInit, postShutdown, postStart, shutdown, startgetNamecheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, doInitializePDOs, getNodeID, getSerialNB, initializeAndCheckHardware, initializePDOs, isBooted, isInitialized, printState, raiseAlarmIfMissing, setBooted, updateFromPDOonEmergencyMessage, onFault, onFaultResetclearAlarm, getAlertService, getSubsystem, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarningpublic SimuPlutoGateway(int nodeID,
String serialNB)
nodeID - serialNB - public int[] readNewValues()
readNewValues in interface PlutoGatewayInterfacepublic int[] readValuesFromPDO()
readValuesFromPDO in interface PlutoGatewayInterfacepublic void replaceValues(DigitalSensor sensor, boolean on)
sensor - to be changedon - if true, simulates that sensor is on, else simulates that sensor if off.Copyright © 2018 LSST. All rights reserved.