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