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