예제 #1
0
        /// <summary>
        /// Calculate formula
        /// </summary>
        /// <exception cref="VariableNotFoundException"></exception>
        /// <exception cref="InvalidCastException"></exception>
        /// <exception cref="ExtraTypeNoFreeIdException"></exception>
        /// <exception cref="ExtraTypeIdNotFoundException"></exception>
        public double CalcNumber(FormulaNodes formulaNodes, IDictionary <string, EvaluatorValue> variables)
        {
            var wrapper = VariablesSource.Create(variables);

            return(OnCalcNumber(formulaNodes.Nodes, wrapper));
        }
예제 #2
0
        /// <summary>
        /// Calculate formula
        /// </summary>
        /// <exception cref="VariableNotFoundException"></exception>
        /// <exception cref="InvalidCastException"></exception>
        /// <exception cref="ExtraTypeNoFreeIdException"></exception>
        /// <exception cref="ExtraTypeIdNotFoundException"></exception>
        public double CalcNumber(FormulaNodes formulaNodes, IVariablesContainer variables)
        {
            var wrapper = VariablesSource.Create(variables);

            return(OnCalcNumber(formulaNodes.Nodes, wrapper));
        }
예제 #3
0
 /// <summary>
 /// Calculate formula
 /// </summary>
 /// <exception cref="VariableNotFoundException"></exception>
 /// <exception cref="InvalidCastException"></exception>
 /// <exception cref="ExtraTypeNoFreeIdException"></exception>
 /// <exception cref="ExtraTypeIdNotFoundException"></exception>
 public EvaluatorValue Calc(FormulaNodes formulaNodes)
 {
     return(OnCalcAggregated(formulaNodes.Nodes, default));
 }
예제 #4
0
        /// <summary>
        /// Calculate formula
        /// </summary>
        /// <exception cref="VariableNotFoundException"></exception>
        /// <exception cref="InvalidCastException"></exception>
        /// <exception cref="ExtraTypeNoFreeIdException"></exception>
        /// <exception cref="ExtraTypeIdNotFoundException"></exception>
        public EvaluatorValue Calc(FormulaNodes formulaNodes, IVariablesContainer variables)
        {
            var wrapper = VariablesSource.Create(variables);

            return(OnCalcAggregated(formulaNodes.Nodes, wrapper));
        }
예제 #5
0
        /// <summary>
        /// Calculate formula
        /// </summary>
        /// <exception cref="VariableNotFoundException"></exception>
        /// <exception cref="InvalidCastException"></exception>
        /// <exception cref="ExtraTypeNoFreeIdException"></exception>
        /// <exception cref="ExtraTypeIdNotFoundException"></exception>
        public EvaluatorValue Calc(FormulaNodes formulaNodes, IDictionary <string, EvaluatorValue> variables)
        {
            var wrapper = VariablesSource.Create(variables);

            return(OnCalcAggregated(formulaNodes.Nodes, wrapper));
        }
예제 #6
0
        /// <summary>
        /// Calculate formula
        /// </summary>
        /// <exception cref="VariableNotFoundException"></exception>
        /// <exception cref="InvalidCastException"></exception>
        /// <exception cref="ExtraTypeNoFreeIdException"></exception>
        /// <exception cref="ExtraTypeIdNotFoundException"></exception>
        public bool CalcBoolean(FormulaNodes formulaNodes, IDictionary <string, EvaluatorValue> variables)
        {
            var wrapper = VariablesSource.Create(variables);

            return(OnCalcBoolean(formulaNodes.Nodes, wrapper));
        }
예제 #7
0
 /// <summary>
 /// Calculate formula
 /// </summary>
 /// <exception cref="VariableNotFoundException"></exception>
 /// <exception cref="InvalidCastException"></exception>
 /// <exception cref="ExtraTypeNoFreeIdException"></exception>
 /// <exception cref="ExtraTypeIdNotFoundException"></exception>
 public bool CalcBoolean(FormulaNodes formulaNodes)
 {
     return(OnCalcBoolean(formulaNodes.Nodes, default));
 }
예제 #8
0
 /// <summary>
 /// Calculate formula
 /// </summary>
 /// <exception cref="VariableNotFoundException"></exception>
 /// <exception cref="InvalidCastException"></exception>
 /// <exception cref="ExtraTypeNoFreeIdException"></exception>
 /// <exception cref="ExtraTypeIdNotFoundException"></exception>
 public List <double> CalcNumberList(FormulaNodes formulaNodes)
 {
     return(OnCalcNumberList(formulaNodes.Nodes, default));
 }
예제 #9
0
        /// <summary>
        /// Calculate formula
        /// </summary>
        /// <exception cref="VariableNotFoundException"></exception>
        /// <exception cref="InvalidCastException"></exception>
        /// <exception cref="ExtraTypeNoFreeIdException"></exception>
        /// <exception cref="ExtraTypeIdNotFoundException"></exception>
        public bool CalcBoolean(FormulaNodes formulaNodes, IVariablesContainer variables)
        {
            var wrapper = VariablesSource.Create(variables);

            return(OnCalcBoolean(formulaNodes.Nodes, wrapper));
        }
예제 #10
0
        /// <summary>
        /// Calculate formula
        /// </summary>
        /// <exception cref="VariableNotFoundException"></exception>
        /// <exception cref="InvalidCastException"></exception>
        /// <exception cref="ExtraTypeNoFreeIdException"></exception>
        /// <exception cref="ExtraTypeIdNotFoundException"></exception>
        public List <string> CalcWordList(FormulaNodes formulaNodes, IDictionary <string, EvaluatorValue> variables)
        {
            var wrapper = VariablesSource.Create(variables);

            return(OnCalcWordList(formulaNodes.Nodes, wrapper));
        }
예제 #11
0
 /// <summary>
 /// Calculate formula
 /// </summary>
 /// <exception cref="VariableNotFoundException"></exception>
 /// <exception cref="InvalidCastException"></exception>
 /// <exception cref="ExtraTypeNoFreeIdException"></exception>
 /// <exception cref="ExtraTypeIdNotFoundException"></exception>
 public List <string> CalcWordList(FormulaNodes formulaNodes)
 {
     return(OnCalcWordList(formulaNodes.Nodes, default));
 }
예제 #12
0
        /// <summary>
        /// Calculate formula
        /// </summary>
        /// <exception cref="VariableNotFoundException"></exception>
        /// <exception cref="InvalidCastException"></exception>
        /// <exception cref="ExtraTypeNoFreeIdException"></exception>
        /// <exception cref="ExtraTypeIdNotFoundException"></exception>
        public List <string> CalcWordList(FormulaNodes formulaNodes, IVariablesContainer variables)
        {
            var wrapper = VariablesSource.Create(variables);

            return(OnCalcWordList(formulaNodes.Nodes, wrapper));
        }
예제 #13
0
 /// <summary>
 /// Calculate formula
 /// </summary>
 /// <exception cref="VariableNotFoundException"></exception>
 /// <exception cref="InvalidCastException"></exception>
 /// <exception cref="ExtraTypeNoFreeIdException"></exception>
 /// <exception cref="ExtraTypeIdNotFoundException"></exception>
 public DateTime CalcDateTime(FormulaNodes formulaNodes)
 {
     return(OnCalcDateTime(formulaNodes.Nodes, default));
 }
예제 #14
0
        /// <summary>
        /// Calculate formula
        /// </summary>
        /// <exception cref="VariableNotFoundException"></exception>
        /// <exception cref="InvalidCastException"></exception>
        /// <exception cref="ExtraTypeNoFreeIdException"></exception>
        /// <exception cref="ExtraTypeIdNotFoundException"></exception>
        public DateTime CalcDateTime(FormulaNodes formulaNodes, IVariablesContainer variables)
        {
            var wrapper = VariablesSource.Create(variables);

            return(OnCalcDateTime(formulaNodes.Nodes, wrapper));
        }
예제 #15
0
 /// <summary>
 /// Calculate formula
 /// </summary>
 /// <exception cref="VariableNotFoundException"></exception>
 /// <exception cref="InvalidCastException"></exception>
 /// <exception cref="ExtraTypeNoFreeIdException"></exception>
 /// <exception cref="ExtraTypeIdNotFoundException"></exception>
 public string CalcWord(FormulaNodes formulaNodes)
 {
     return(OnCalcWord(formulaNodes.Nodes, default));
 }
예제 #16
0
 /// <summary>
 /// Calculate formula
 /// </summary>
 /// <exception cref="VariableNotFoundException"></exception>
 /// <exception cref="InvalidCastException"></exception>
 /// <exception cref="ExtraTypeNoFreeIdException"></exception>
 /// <exception cref="ExtraTypeIdNotFoundException"></exception>
 public double CalcNumber(FormulaNodes formulaNodes)
 {
     return(OnCalcNumber(formulaNodes.Nodes, default));
 }