Ejemplo n.º 1
0
 public virtual object Execute(XFCalculatorToolKit toolKit, IDictionary<string, object> variables)
 {
     var isDecimalList = toolKit.IsDecimalList(Tool.Name);
      var args = isDecimalList ? PrepareDecimalListArgument(Inputs, variables)
                           : PrepareDiscreteArguments(Inputs, variables);
      return toolKit.InvokeTool(Tool.Name, args);
 }
Ejemplo n.º 2
0
 public KeyValuePair<string, object> Compute(IDictionary<string, object> variables, XFCalculatorToolKit toolKit)
 {
     Executor.Output.Value =  Executor is XFComputation
                                 ? Computation.Execute(toolKit, variables)
                                 : ControlFlow.Execute(toolKit, variables);
      return Executor.KeyValue;
 }
Ejemplo n.º 3
0
 public override object Execute(XFCalculatorToolKit toolKit, IDictionary<string, object> variables)
 {
     var assert = base.Execute(toolKit, variables);
      return assert.ToString().ToLower() == bool.TrueString.ToLower() ? SkipTo : string.Empty;
 }
Ejemplo n.º 4
0
 public void InitializeToolKit(XFCalculatorToolKit toolKit)
 {
     Algorithm.ToolKit = toolKit;
 }