Skip to main content

ParseConsumptionRecord

Namespace: Meshmakers.Octo.Communication.EdaAdapter.Nodes

Parse consumption records from EDA and extract energy quantities.

public class ParseConsumptionRecord : IPipelineNode

Inheritance Object → ParseConsumptionRecord
Implements IPipelineNode

Remarks:

Every quantity is handed on in kWh: KWH is taken as delivered, MWH is multiplied by 1,000 and GWH by 1,000,000 (decimal arithmetic, no rounding), and EnergyData.QuantityUnit is always kWh. A record with a position whose reading method is not L1, L2 or L3, or with a series with positions in any other unit, is rejected as a whole: nothing is written for it, one WARN line starting with "EDA consumption record rejected" is logged and the node continues, so the other messages of the batch are processed; the record is clarified with the grid operator and entered manually. Corrupt XML still fails the pipeline execution. See ConsumptionRecordCheck.

Constructors​

ParseConsumptionRecord(NodeDelegate, IEdaMessageCreator, IEtlContext)​

Parse consumption records from EDA and extract energy quantities.

public ParseConsumptionRecord(NodeDelegate next, IEdaMessageCreator creator, IEtlContext etlContext)

Parameters​

next NodeDelegate

creator IEdaMessageCreator

etlContext IEtlContext

Remarks:

Every quantity is handed on in kWh: KWH is taken as delivered, MWH is multiplied by 1,000 and GWH by 1,000,000 (decimal arithmetic, no rounding), and EnergyData.QuantityUnit is always kWh. A record with a position whose reading method is not L1, L2 or L3, or with a series with positions in any other unit, is rejected as a whole: nothing is written for it, one WARN line starting with "EDA consumption record rejected" is logged and the node continues, so the other messages of the batch are processed; the record is clarified with the grid operator and entered manually. Corrupt XML still fails the pipeline execution. See ConsumptionRecordCheck.

Methods​

ProcessObjectAsync(IDataContext, INodeContext)​

public Task ProcessObjectAsync(IDataContext dataContext, INodeContext nodeContext)

Parameters​

dataContext IDataContext

nodeContext INodeContext

Returns​

Task