Search in sources :

Example 1 with Pv

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

the class RtuSimulator method addPvDevices.

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

Aggregations

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