Search in sources :

Example 1 with BasicDataAttribute

use of org.openmuc.openiec61850.BasicDataAttribute 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 BasicDataAttribute

use of org.openmuc.openiec61850.BasicDataAttribute 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 BasicDataAttribute

use of org.openmuc.openiec61850.BasicDataAttribute 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 BasicDataAttribute

use of org.openmuc.openiec61850.BasicDataAttribute 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 BasicDataAttribute

use of org.openmuc.openiec61850.BasicDataAttribute 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

BasicDataAttribute (org.openmuc.openiec61850.BasicDataAttribute)4 LogicalDevice (com.alliander.osgp.simulator.protocol.iec61850.server.logicaldevices.LogicalDevice)3 BdaInt32 (org.openmuc.openiec61850.BdaInt32)3 BdaFloat32 (org.openmuc.openiec61850.BdaFloat32)2 BdaInt8 (org.openmuc.openiec61850.BdaInt8)2 ArrayList (java.util.ArrayList)1 Date (java.util.Date)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 ModelNode (org.openmuc.openiec61850.ModelNode)1 Scheduled (org.springframework.scheduling.annotation.Scheduled)1