use of org.openmuc.openiec61850.Fc in project Protocol-Adapter-IEC61850 by OSGP.
the class LogicalDevice method setRandomByte.
protected BasicDataAttribute setRandomByte(final String node, final Fc fc, final int min, final int max) {
final BdaInt8 value = (BdaInt8) this.serverModel.findModelNode(this.createNodeName(node), fc);
value.setValue((byte) ThreadLocalRandom.current().nextInt(min, max));
return value;
}
use of org.openmuc.openiec61850.Fc in project Protocol-Adapter-IEC61850 by OSGP.
the class LogicalDevice method setRandomFloat.
protected BasicDataAttribute setRandomFloat(final String node, final Fc fc, final int min, final int max) {
final BdaFloat32 value = (BdaFloat32) this.serverModel.findModelNode(this.createNodeName(node), fc);
value.setFloat((float) ThreadLocalRandom.current().nextInt(min, max));
return value;
}
use of org.openmuc.openiec61850.Fc 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.Fc 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.Fc in project Protocol-Adapter-IEC61850 by OSGP.
the class LogicalDevice method setTime.
protected BasicDataAttribute setTime(final String node, final Fc fc, final Date date) {
final BdaTimestamp value = (BdaTimestamp) this.serverModel.findModelNode(this.createNodeName(node), fc);
value.setDate(date);
return value;
}
Aggregations