Opc.Ua.Server.Aggregators.CreateStandardCalculator C# (CSharp) Method

CreateStandardCalculator() public static method

Creates a calculator for one of the standard aggregates.
public static CreateStandardCalculator ( NodeId aggregateId, System.DateTime startTime, System.DateTime endTime, double processingInterval, bool stepped, AggregateConfiguration configuration ) : IAggregateCalculator
aggregateId NodeId
startTime System.DateTime
endTime System.DateTime
processingInterval double
stepped bool
configuration AggregateConfiguration
return IAggregateCalculator
        public static IAggregateCalculator CreateStandardCalculator(
            NodeId aggregateId,
            DateTime startTime,
            DateTime endTime,
            double processingInterval,
            bool stepped,
            AggregateConfiguration configuration) 
        {
            for (int ii = 0; ii < s_Mappings.Length; ii++)
            {
                if (s_Mappings[ii].AggregateId == aggregateId)
                {
                    return (IAggregateCalculator)Activator.CreateInstance(
                        s_Mappings[ii].Calculator,
                        aggregateId, 
                        startTime, 
                        endTime, 
                        processingInterval, 
                        stepped, 
                        configuration);
                }
            }

            return null;
        }
    }