Exemplo n.º 1
0
 /// <summary>
 /// Static method to generate an evaluator from XML node
 /// </summary>
 /// <param name="evaluatorNode"></param>
 /// <param name="dependencies"></param>
 /// <returns></returns>
 public static Evaluator GetEvaluator(XmlNode evaluatorNode, Dependency dependencies)
 {
     Evaluator schedEvaluator = new TargetValueEvaluator(dependencies); // default
     if (evaluatorNode != null)
         schedEvaluator = new ScriptedEvaluator(evaluatorNode, dependencies);
     return schedEvaluator;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Static method to generate an evaluator from XML node
        /// </summary>
        /// <param name="evaluatorNode"></param>
        /// <param name="dependencies"></param>
        /// <returns></returns>
        public static Evaluator GetEvaluator(XmlNode evaluatorNode, Dependency dependencies)
        {
            Evaluator schedEvaluator = new TargetValueEvaluator(dependencies); // default

            if (evaluatorNode != null)
            {
                schedEvaluator = new ScriptedEvaluator(evaluatorNode, dependencies);
            }
            return(schedEvaluator);
        }