/// <summary> /// Applies the series of calculators to the specified runtime /// </summary> /// <param name="runtime">A runtime to which the series of calculators is applied</param> public void ApplyCalculation(GraspRuntime runtime) { foreach(var calculator in Calculators) { calculator.ApplyCalculation(runtime); } }
void ICalculator.ApplyCalculation(GraspRuntime runtime) { Contract.Requires(runtime != null); }
/// <summary> /// Applies the function to the specified runtime /// </summary> /// <param name="runtime">A runtime to which the function is applied</param> public void ApplyCalculation(GraspRuntime runtime) { runtime.SetVariableValue(OutputVariable, Function(runtime)); }