Search in sources :

Example 1 with LightMeasurementRtu

use of org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.LightMeasurementRtu in project open-smart-grid-platform by OSGP.

the class RtuSimulator method addLightMeasurementDevice.

private void addLightMeasurementDevice(final ServerModel serverModel) {
    final String logicalDeviceName = "LD0";
    final ModelNode lightMeasurementRtuNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
    if (lightMeasurementRtuNode != null) {
        // Light Measurement RTU found in the server model.
        LOGGER.info("Adding lmRtu {}", logicalDeviceName);
        this.logicalDevices.add(new LightMeasurementRtu(this.getDeviceName(), logicalDeviceName, serverModel));
    }
}
Also used : LightMeasurementRtu(org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.LightMeasurementRtu) ModelNode(com.beanit.openiec61850.ModelNode)

Aggregations

ModelNode (com.beanit.openiec61850.ModelNode)1 LightMeasurementRtu (org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.LightMeasurementRtu)1