use of com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.Boiler in project Protocol-Adapter-IEC61850 by OSGP.
the class RtuSimulator method addBoilerDevices.
private void addBoilerDevices(final ServerModel serverModel) {
final String boilerPrefix = "BOILER";
int i = 1;
String logicalDeviceName = boilerPrefix + i;
ModelNode boilerNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
while (boilerNode != null) {
this.logicalDevices.add(new Boiler(this.getDeviceName(), logicalDeviceName, serverModel));
i += 1;
logicalDeviceName = boilerPrefix + i;
boilerNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
}
}