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

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