Search in sources :

Example 1 with BdaInt32

use of org.openmuc.openiec61850.BdaInt32 in project Protocol-Adapter-IEC61850 by OSGP.

the class LogicalDevice method incrementInt.

protected BasicDataAttribute incrementInt(final String node, final Fc fc) {
    final BdaInt32 value = (BdaInt32) this.serverModel.findModelNode(this.createNodeName(node), fc);
    value.setValue(value.getValue() + 1);
    return value;
}
Also used : BdaInt32(org.openmuc.openiec61850.BdaInt32)

Example 2 with BdaInt32

use of org.openmuc.openiec61850.BdaInt32 in project Protocol-Adapter-IEC61850 by OSGP.

the class LogicalDevice method setInt.

protected BasicDataAttribute setInt(final String node, final Fc fc, final int val) {
    final BdaInt32 value = (BdaInt32) this.serverModel.findModelNode(this.createNodeName(node), fc);
    value.setValue(val);
    return value;
}
Also used : BdaInt32(org.openmuc.openiec61850.BdaInt32)

Example 3 with BdaInt32

use of org.openmuc.openiec61850.BdaInt32 in project Protocol-Adapter-IEC61850 by OSGP.

the class LogicalDevice method setRandomInt.

protected BasicDataAttribute setRandomInt(final String node, final Fc fc, final int min, final int max) {
    final BdaInt32 value = (BdaInt32) this.serverModel.findModelNode(this.createNodeName(node), fc);
    value.setValue(ThreadLocalRandom.current().nextInt(min, max));
    return value;
}
Also used : BdaInt32(org.openmuc.openiec61850.BdaInt32)

Example 4 with BdaInt32

use of org.openmuc.openiec61850.BdaInt32 in project Protocol-Adapter-IEC61850 by OSGP.

the class NodeContainer method writeInteger.

public void writeInteger(final SubDataAttribute child, final Integer value) throws NodeWriteException {
    final BdaInt32 bdaInteger = (BdaInt32) this.parent.getChild(child.getDescription());
    bdaInteger.setValue(value);
    this.writeNode(bdaInteger);
}
Also used : BdaInt32(org.openmuc.openiec61850.BdaInt32)

Aggregations

BdaInt32 (org.openmuc.openiec61850.BdaInt32)4