Search in sources :

Example 1 with GasFurnace

use of org.opensmartgridplatform.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)

Example 2 with GasFurnace

use of org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.GasFurnace in project open-smart-grid-platform 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(org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.GasFurnace) ModelNode(com.beanit.openiec61850.ModelNode)

Aggregations

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