public ProfileUpdateSet() { _dictionary = BaseFunctions.DefaultDictionary; _calcIntOp = Build(Scripts.CalcIntOp); _calcRealOp = Build(Scripts.CalcRealOp); _calcBoolOp = Build(Scripts.CalcBoolOp); _calcSquareEquation = Build(Scripts.CalcSquareEquation); _calcTextOp = Build(Scripts.CalcTextOp); _calcInterpolation = Build(Scripts.CalcInterpolation); _calcGenericFunc = Build(Scripts.CalcGenericFunc); _constTrue = Build(Scripts.ConstTrue); _const1 = Build(Scripts.Const1); _constSingleText = Build(Scripts.ConstText); _constBoolArray = Build(Scripts.ConstBoolArray); _constRealArray = Build(Scripts.ConstRealArray); _calcSingleBool = Build(Scripts.CalcSingleBool); _constBool = Build(Scripts.ConstBoolOp); _calcSingleReal = Build(Scripts.CalcSingleReal); _calcSingleText = Build(Scripts.CalcSingleText); _calcKxb = Build(Scripts.CalcKxb); _calcRealArray = Build(Scripts.CalcRealArray); _calcFourArgs = Build(Scripts.CalcFourArgs); _constMultiplyArrayItems = Build(Scripts.MultiplyArrayItems); _constDummyBubbleSort = Build(Scripts.DummyBubbleSort); _constEverything = Build(Scripts.Everything); _constInterpolation = Build(Scripts.ConstInterpolation); _constSquareEquation = Build(Scripts.ConstSquareEquation); _constGenericFunc = Build(Scripts.ConstGenericFunc); _primitiveConstIntSimpleArithmetics = Build(Scripts.PrimitiveConstIntSimpleArithmetics); _primitiveConstRealSimpleArithmetics = Build(Scripts.PrimitiveConstRealSimpleArithmetics); _primitiveConstBoolSimpleArithmetics = Build(Scripts.PrimitiveConstBoolSimpleArithmetics); _primitiveCalcReal2Var = Build(Scripts.PrimitiveCalcReal2Var); _primitiveCalcInt2Var = Build(Scripts.PrimitiveCalcInt2Var); _primitiveCalcReal2Var["a"] = 42.1; _primitiveCalcReal2Var["b"] = 24.0; _primitiveCalcInt2Var["a"] = 42; _primitiveCalcInt2Var["b"] = 24; _calcSingleReal["x"] = 1.0; _calcSingleText["x"] = "foo"; _calcBoolOp["x"] = false; _calcKxb["x"] = 42.2; _calcRealArray["x"] = 24.6; _calcFourArgs["a"] = 24.6; _calcFourArgs["b"] = 12.2; _calcFourArgs["c"] = 654.3; _calcFourArgs["d"] = "bbbaaaaa"; _calcInterpolation["a"] = 2.0; _calcInterpolation["b"] = 4.0; _calcGenericFunc["a"] = 1.0; _calcGenericFunc["b"] = 2.0; _calcGenericFunc["c"] = 3.0; _calcSquareEquation["a"] = 1.0; _calcSquareEquation["b"] = 10.0; _calcSquareEquation["c"] = 1.5; _calcIntOp ["x"] = 42; _calcRealOp["x"] = 42.0; _calcBoolOp["x"] = true; _calcTextOp["x"] = "vasa"; _calcInterpolation["a"] = 2.0; _calcInterpolation["b"] = 1.0; _calcSingleBool["x"] = true; }
private HardcoreBuilder(ImmutableFunctionDictionary immutableFunctionDictionary, IConstantList constants, AprioriTypesMap apriori) { _apriori = apriori; _immutableFunctionDictionary = immutableFunctionDictionary; _constants = constants; }
static BaseFunctions() { DefaultDictionary = new ImmutableFunctionDictionary(ConcreteFunctions, GenericFunctions); }
internal HardcoreBuilder() { _immutableFunctionDictionary = BaseFunctions.DefaultDictionary; _constants = new ConstantList(); _apriori = AprioriTypesMap.Empty; }