Search in sources :

Example 1 with GasFurnace

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

the class RtuSimulator method addGasFurnaceDevices.

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

Aggregations

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