Search in sources :

Example 1 with Wind

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

the class RtuSimulator method addWindDevices.

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

Aggregations

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