use of com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.Chp in project Protocol-Adapter-IEC61850 by OSGP.
the class RtuSimulator method addChpDevices.
private void addChpDevices(final ServerModel serverModel) {
final String chpPrefix = "CHP";
int i = 1;
String logicalDeviceName = chpPrefix + i;
ModelNode chpNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
while (chpNode != null) {
this.logicalDevices.add(new Chp(this.getDeviceName(), logicalDeviceName, serverModel));
i += 1;
logicalDeviceName = chpPrefix + i;
chpNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
}
}