Search in sources :

Example 1 with HeatPump

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);
    }
}
Also used : HeatPump(com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.HeatPump) ModelNode(org.openmuc.openiec61850.ModelNode)

Aggregations

HeatPump (com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.HeatPump)1 ModelNode (org.openmuc.openiec61850.ModelNode)1