1 10 package org.jgap.distr.grid; 11 12 import org.homedns.dade.jcgrid.*; 13 import org.jgap.*; 14 15 21 public class JGAPResult 22 extends WorkResult { 23 24 private final static String CVS_REVISION = "$Revision: 1.2 $"; 25 26 private IChromosome m_fittest; 27 private Population m_pop; 28 29 private long m_unitDone; 30 31 39 public JGAPResult(String name, int id, IChromosome a_fittestChrom, 40 long a_unitdone) { 41 super(name, id); 42 m_fittest = a_fittestChrom; 43 m_unitDone = a_unitdone; 44 } 45 46 57 public JGAPResult(String name, int id, Population a_chromosomes, 58 long a_unitdone) { 59 super(name, id); 60 m_fittest = null; 61 m_pop = a_chromosomes; 62 m_unitDone = a_unitdone; 63 } 64 65 69 public IChromosome getFittest() { 70 return m_fittest; 71 } 72 73 79 public Population getPopulation() { 80 return m_pop; 81 } 82 83 public long getUnitDone() { 84 return m_unitDone; 85 } 86 } 87 | Popular Tags |