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