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);
}
}