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