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;
}
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;
}
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;
}
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;
}
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;
}