use of org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.SwitchDevice 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));
}
}
Aggregations