use of com.beanit.openiec61850.ServerModel in project open-smart-grid-platform by OSGP.
the class RtuSimulator method addPqDevices.
private void addPqDevices(final ServerModel serverModel) {
final String pqPrefix = "PQ";
int i = 1;
String logicalDeviceName = pqPrefix + i;
ModelNode pqNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
while (pqNode != null) {
this.logicalDevices.add(new Pq(this.getDeviceName(), logicalDeviceName, serverModel));
i += 1;
logicalDeviceName = pqPrefix + i;
pqNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
}
}
use of com.beanit.openiec61850.ServerModel in project open-smart-grid-platform by OSGP.
the class RtuSimulator method addSwitchDevices.
private void addSwitchDevices(final ServerModel serverModel) {
final String logicalDeviceName = "IO";
final ModelNode switchDevice = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
if (switchDevice != null) {
LOGGER.info("Adding switchDevice {}", this.getDeviceName());
this.logicalDevices.add(new SwitchDevice(this.getDeviceName(), logicalDeviceName, serverModel));
}
}
use of com.beanit.openiec61850.ServerModel in project open-smart-grid-platform by OSGP.
the class RtuSimulator method addBoilerDevices.
private void addBoilerDevices(final ServerModel serverModel) {
final String boilerPrefix = "BOILER";
int i = 1;
String logicalDeviceName = boilerPrefix + i;
ModelNode boilerNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
while (boilerNode != null) {
this.logicalDevices.add(new Boiler(this.getDeviceName(), logicalDeviceName, serverModel));
i += 1;
logicalDeviceName = boilerPrefix + i;
boilerNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
}
}
use of com.beanit.openiec61850.ServerModel in project open-smart-grid-platform 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);
}
}
use of com.beanit.openiec61850.ServerModel in project open-smart-grid-platform by OSGP.
the class RtuSimulator method addRtuDevices.
private void addRtuDevices(final ServerModel serverModel) {
final String rtuPrefix = "RTU";
int i = 1;
String logicalDeviceName = rtuPrefix + i;
ModelNode rtuNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
while (rtuNode != null) {
this.logicalDevices.add(new Rtu(this.getDeviceName(), logicalDeviceName, serverModel));
i += 1;
logicalDeviceName = rtuPrefix + i;
rtuNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
}
}
Aggregations