Search in sources :

Example 1 with Chp

use of com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.Chp 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);
    }
}
Also used : Chp(com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.Chp) ModelNode(org.openmuc.openiec61850.ModelNode)

Aggregations

Chp (com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.Chp)1 ModelNode (org.openmuc.openiec61850.ModelNode)1