Search in sources :

Example 1 with BdaInt32

use of com.beanit.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 com.beanit.openiec61850.BdaInt32 in project open-smart-grid-platform by OSGP.

the class LogicalDevice method setRandomInt.

protected BasicDataAttribute setRandomInt(final LogicalDeviceNode node, final int min, final int max) {
    final BdaInt32 value = (BdaInt32) this.serverModel.findModelNode(this.createNodeName(node), node.getFc());
    value.setValue(ThreadLocalRandom.current().nextInt(min, max));
    return value;
}
Also used : BdaInt32(com.beanit.openiec61850.BdaInt32)

Example 3 with BdaInt32

use of com.beanit.openiec61850.BdaInt32 in project open-smart-grid-platform by OSGP.

the class LogicalDevice method setInt.

protected BasicDataAttribute setInt(final LogicalDeviceNode node, final int val) {
    final BdaInt32 value = (BdaInt32) this.serverModel.findModelNode(this.createNodeName(node), node.getFc());
    value.setValue(val);
    return value;
}
Also used : BdaInt32(com.beanit.openiec61850.BdaInt32)

Example 4 with BdaInt32

use of com.beanit.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 5 with BdaInt32

use of com.beanit.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)

Aggregations

BdaInt32 (com.beanit.openiec61850.BdaInt32)4 BdaInt32 (org.openmuc.openiec61850.BdaInt32)4