Пример #1
0
 public Solver(Metric metric, SolverResult solverResult)
 {
     this.resultRepository      = new SortedSet <RowSolverResult>();
     this.METRIC_FACTORY        = metric;
     this.SOLVER_RESULT_FACTORY = solverResult;
 }
Пример #2
0
 public static void SetMetricAndResult(Metric metric, SolverResult solverResult)
 {
     metric.solverResult = solverResult;
     solverResult.metric = metric;
 }
Пример #3
0
        public int CompareTo(object obj)
        {
            SolverResult other = (SolverResult)obj;

            return(this.metric.CompareTo(other.metric));
        }