Search in sources :

Example 1 with Engine

use of org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.Engine in project Protocol-Adapter-IEC61850 by OSGP.

the class RtuSimulator method addEngineDevices.

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

Example 2 with Engine

use of org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.Engine in project open-smart-grid-platform by OSGP.

the class RtuSimulator method addEngineDevices.

private void addEngineDevices(final ServerModel serverModel) {
    final String enginePrefix = "ENGINE";
    int i = 1;
    String logicalDeviceName = enginePrefix + i;
    ModelNode engineNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
    while (engineNode != null) {
        this.logicalDevices.add(new Engine(this.getDeviceName(), logicalDeviceName, serverModel));
        i += 1;
        logicalDeviceName = enginePrefix + i;
        engineNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
    }
}
Also used : ModelNode(com.beanit.openiec61850.ModelNode) Engine(org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.Engine)

Aggregations

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