use of org.openmuc.openiec61850.ServerModel in project Protocol-Adapter-IEC61850 by OSGP.
the class RtuSimulator method addHeatPumpDevices.
private void addHeatPumpDevices(final ServerModel serverModel) {
final String heatPumpPrefix = "HEAT_PUMP";
int i = 1;
String logicalDeviceName = heatPumpPrefix + i;
ModelNode heatPumpNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
while (heatPumpNode != null) {
this.logicalDevices.add(new HeatPump(this.getDeviceName(), logicalDeviceName, serverModel));
i += 1;
logicalDeviceName = heatPumpPrefix + i;
heatPumpNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
}
}
use of org.openmuc.openiec61850.ServerModel 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);
}
}
use of org.openmuc.openiec61850.ServerModel in project Protocol-Adapter-IEC61850 by OSGP.
the class RtuSimulator method addLoadDevices.
private void addLoadDevices(final ServerModel serverModel) {
final String loadPrefix = "LOAD";
int i = 1;
String logicalDeviceName = loadPrefix + i;
ModelNode loadNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
while (loadNode != null) {
this.logicalDevices.add(new Load(this.getDeviceName(), logicalDeviceName, serverModel));
i += 1;
logicalDeviceName = loadPrefix + i;
loadNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
}
}
use of org.openmuc.openiec61850.ServerModel in project Protocol-Adapter-IEC61850 by OSGP.
the class RtuSimulator method addBatteryDevices.
private void addBatteryDevices(final ServerModel serverModel) {
final String batteryPrefix = "BATTERY";
int i = 1;
String logicalDeviceName = batteryPrefix + i;
ModelNode batteryNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
while (batteryNode != null) {
this.logicalDevices.add(new Battery(this.getDeviceName(), logicalDeviceName, serverModel));
i += 1;
logicalDeviceName = batteryPrefix + i;
batteryNode = serverModel.getChild(this.getDeviceName() + logicalDeviceName);
}
}
use of org.openmuc.openiec61850.ServerModel in project Protocol-Adapter-IEC61850 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);
}
}
Aggregations