@Test public void testEvaluateSchedule() throws Exception { JsspPhenotypeEvaluator evaluator = new JsspPhenotypeEvaluator(_jobsDefinition); Integer[] jobArray = new Integer[] {1,1,1,2,2,2}; double[] objVal = evaluator.evaluateSchedule(jobArray); assertEquals (12, (int)objVal[0]); jobArray = new Integer[] {1,2,1,2,1,2}; objVal = evaluator.evaluateSchedule(jobArray, true); assertEquals (6, (int)objVal[0]); assertNotNull(evaluator.getSchedule()); }
public double[] evaluateSchedule(Integer[] jobArray) { _schedule = null; return evaluateSchedule(jobArray, false); }
JsspPhenotypeEvaluator implements IPhenotypeEvaluator { public double[] evaluateSchedule(Integer[] jobArray) { _schedule = null; return evaluateSchedule(jobArray, false); } }
JsspPhenotypeEvaluator implements IPhenotypeEvaluator { public double[] evaluateSchedule(Integer[] jobArray) { _schedule = null; return evaluateSchedule(jobArray, false); } JsspPhenotypeEvaluator(JobsDefinition jobsDefinition); }
JsspPhenotypeEvaluator implements IPhenotypeEvaluator { public double[] evaluateSchedule(Integer[] jobArray) { _schedule = null; return evaluateSchedule(jobArray, false); } JsspPhenotypeEvaluator(JobsDefinition jobsDefinition); @Override double[] evaluate(Object[] phenotypeSubject); @Override int compare(double[] arg0, double[] arg1); double[] evaluateSchedule(Integer[] jobArray); double[] evaluateSchedule(Integer[] jobArray, boolean buildSchedule); Schedule getSchedule(); }
JsspPhenotypeEvaluator implements IPhenotypeEvaluator { public double[] evaluateSchedule(Integer[] jobArray) { _schedule = null; return evaluateSchedule(jobArray, false); } JsspPhenotypeEvaluator(JobsDefinition jobsDefinition); @Override double[] evaluate(Object[] phenotypeSubject); @Override int compare(double[] arg0, double[] arg1); double[] evaluateSchedule(Integer[] jobArray); double[] evaluateSchedule(Integer[] jobArray, boolean buildSchedule); Schedule getSchedule();  }