use of org.openmuc.openiec61850.Fc in project Protocol-Adapter-IEC61850 by OSGP.
the class LogicalDevice method setQuality.
protected BasicDataAttribute setQuality(final String node, final Fc fc, final short q) {
final BdaQuality value = (BdaQuality) this.serverModel.findModelNode(this.createNodeName(node), fc);
value.setValue(this.shortToByteArray(q));
return value;
}
use of org.openmuc.openiec61850.Fc 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.Fc in project Protocol-Adapter-IEC61850 by OSGP.
the class LogicalDevice method setBoolean.
protected BasicDataAttribute setBoolean(final String node, final Fc fc, final boolean b) {
final BdaBoolean value = (BdaBoolean) this.serverModel.findModelNode(this.createNodeName(node), fc);
value.setValue(b);
return value;
}
use of org.openmuc.openiec61850.Fc in project Protocol-Adapter-IEC61850 by OSGP.
the class LogicalDevice method setByte.
protected BasicDataAttribute setByte(final String node, final Fc fc, final byte val) {
final BdaInt8 value = (BdaInt8) 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 setFixedFloat.
protected BasicDataAttribute setFixedFloat(final String node, final Fc fc, final float val) {
final BdaFloat32 value = (BdaFloat32) this.serverModel.findModelNode(this.createNodeName(node), fc);
value.setFloat(val);
return value;
}
Aggregations