コード例 #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));
 }