Search in sources :

Example 1 with Boiler

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

Aggregations

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