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);
}
}