Class FdlFunctionBase
Abstract base class for FDL functions.
Inheritance
System.Object
FdlFunctionBase
Implements
Namespace: MESL.SqlRace.Domain.Functions.Fdl
Assembly: MESL.SqlRace.Domain.dll
Syntax
public abstract class FdlFunctionBase : Object, IFunction
Constructors
FdlFunctionBase(Int32, Int32)
Initializes a new instance of the FdlFunctionBase class.
Declaration
protected FdlFunctionBase(int numLocalVariables, int numLocalArrayVariables)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numLocalVariables | The number of local variables. |
System.Int32 | numLocalArrayVariables | The number of local array variables. |
Methods
Execute(IExecutionContext)
Executes on the specified function input.
Declaration
public void Execute(IExecutionContext executionContext)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
Execute(IExecutionContext, Int64, IList<Double>, IList<Double>, IList<LazilySizedArray<Double>>)
Execute the function using the supplied function input.
Declaration
protected abstract double Execute(IExecutionContext executionContext, long timestamp, IList<double> functionInput, IList<double> locals, IList<LazilySizedArray<double>> localArrays)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int64 | timestamp | The current timestamp. |
System.Collections.Generic.IList<System.Double> | functionInput | The function input. |
System.Collections.Generic.IList<System.Double> | locals | Storage for local variables. |
System.Collections.Generic.IList<LazilySizedArray<System.Double>> | localArrays | Storage for local array variables. |
Returns
Type | Description |
---|---|
System.Double | The calculated value. |