Search in sources :

Example 1 with SwitchDevice

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));
    }
}
Also used : ModelNode(com.beanit.openiec61850.ModelNode) SwitchDevice(org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.SwitchDevice)

Aggregations

ModelNode (com.beanit.openiec61850.ModelNode)1 SwitchDevice (org.opensmartgridplatform.simulator.protocol.iec61850.server.logicaldevices.SwitchDevice)1