Search in sources :

Example 1 with HeatBuffer

use of com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.HeatBuffer in project Protocol-Adapter-IEC61850 by OSGP.

the class RtuSimulator method addHeatBufferDevices.

private void addHeatBufferDevices(final ServerModel serverModel) {
    final String heatBufferPrefix = "HEAT_BUFFER";
    int i = 1;
    String logicalDeviceName = heatBufferPrefix + i;
    ModelNode heatBufferNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
    while (heatBufferNode != null) {
        this.logicalDevices.add(new HeatBuffer(this.getDeviceName(), logicalDeviceName, serverModel));
        i += 1;
        logicalDeviceName = heatBufferPrefix + i;
        heatBufferNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
    }
}
Also used : ModelNode(org.openmuc.openiec61850.ModelNode) HeatBuffer(com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.HeatBuffer)

Aggregations

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