Search in sources :

Example 1 with Fc

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;
}
Also used : BdaQuality(org.openmuc.openiec61850.BdaQuality)

Example 2 with Fc

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;
}
Also used : BdaInt32(org.openmuc.openiec61850.BdaInt32)

Example 3 with Fc

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;
}
Also used : BdaBoolean(org.openmuc.openiec61850.BdaBoolean)

Example 4 with Fc

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;
}
Also used : BdaInt8(org.openmuc.openiec61850.BdaInt8)

Example 5 with Fc

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;
}
Also used : BdaFloat32(org.openmuc.openiec61850.BdaFloat32)

Aggregations

BdaInt32 (org.openmuc.openiec61850.BdaInt32)3 ArrayList (java.util.ArrayList)2 BdaFloat32 (org.openmuc.openiec61850.BdaFloat32)2 BdaInt8 (org.openmuc.openiec61850.BdaInt8)2 FcModelNode (org.openmuc.openiec61850.FcModelNode)2 ModelNode (org.openmuc.openiec61850.ModelNode)2 DataSampleDto (org.osgpfoundation.osgp.dto.da.iec61850.DataSampleDto)2 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 Set (java.util.Set)1 BdaBoolean (org.openmuc.openiec61850.BdaBoolean)1 BdaInt64 (org.openmuc.openiec61850.BdaInt64)1 BdaQuality (org.openmuc.openiec61850.BdaQuality)1 BdaTimestamp (org.openmuc.openiec61850.BdaTimestamp)1 Fc (org.openmuc.openiec61850.Fc)1