Search in sources :

Example 1 with Load

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

the class RtuSimulator method addLoadDevices.

private void addLoadDevices(final ServerModel serverModel) {
    final String loadPrefix = "LOAD";
    int i = 1;
    String logicalDeviceName = loadPrefix + i;
    ModelNode loadNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
    while (loadNode != null) {
        this.logicalDevices.add(new Load(this.getDeviceName(), logicalDeviceName, serverModel));
        i += 1;
        logicalDeviceName = loadPrefix + i;
        loadNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
    }
}
Also used : Load(org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.Load) ModelNode(com.beanit.openiec61850.ModelNode)

Example 2 with Load

use of org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.Load in project Protocol-Adapter-IEC61850 by OSGP.

the class RtuSimulator method addLoadDevices.

private void addLoadDevices(final ServerModel serverModel) {
    final String loadPrefix = "LOAD";
    int i = 1;
    String logicalDeviceName = loadPrefix + i;
    ModelNode loadNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
    while (loadNode != null) {
        this.logicalDevices.add(new Load(this.getDeviceName(), logicalDeviceName, serverModel));
        i += 1;
        logicalDeviceName = loadPrefix + i;
        loadNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
    }
}
Also used : Load(com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.Load) ModelNode(org.openmuc.openiec61850.ModelNode)

Aggregations

Load (com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.Load)1 ModelNode (com.beanit.openiec61850.ModelNode)1 ModelNode (org.openmuc.openiec61850.ModelNode)1 Load (org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.Load)1