public Solver(Metric metric, SolverResult solverResult) { this.resultRepository = new SortedSet <RowSolverResult>(); this.METRIC_FACTORY = metric; this.SOLVER_RESULT_FACTORY = solverResult; }
public static void SetMetricAndResult(Metric metric, SolverResult solverResult) { metric.solverResult = solverResult; solverResult.metric = metric; }
public int CompareTo(object obj) { SolverResult other = (SolverResult)obj; return(this.metric.CompareTo(other.metric)); }