org.jgap.distr.grid
Class JGAPResult
- java.lang.Object
-
- org.homedns.dade.jcgrid.WorkResult
-
- org.jgap.distr.grid.JGAPResult
-
- All Implemented Interfaces:
- java.io.Serializable
public class JGAPResult extends org.homedns.dade.jcgrid.WorkResultHolds the result of a worker.- Since:
- 3.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description JGAPResult(java.lang.String name, int id, IChromosome a_fittestChrom, long a_unitdone)Deprecated.use other constructor with Population parameter insteadJGAPResult(java.lang.String name, int id, Population a_chromosomes, long a_unitdone)Constructor: Takes a Population as result of a worker's computation.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description IChromosomegetFittest()Deprecated.use getPopulation insteadPopulationgetPopulation()longgetUnitDone()
-
-
-
Constructor Detail
-
JGAPResult
public JGAPResult(java.lang.String name, int id, IChromosome a_fittestChrom, long a_unitdone)Deprecated. use other constructor with Population parameter instead- Parameters:
name- Stringid- inta_fittestChrom- IChromosomea_unitdone- long
-
JGAPResult
public JGAPResult(java.lang.String name, int id, Population a_chromosomes, long a_unitdone)Constructor: Takes a Population as result of a worker's computation.- Parameters:
name- arbritrary session name to distinct from other resultsid- ID of the result, should be unique must need nota_chromosomes- the result of a worker's computationa_unitdone- number of units done- Since:
- 3.2
-
-
Method Detail
-
getFittest
public IChromosome getFittest()
Deprecated. use getPopulation instead- Returns:
- IChromosome
-
getPopulation
public Population getPopulation()
- Returns:
- the Population as a result from a worker's computation
- Since:
- 3.2
-
getUnitDone
public long getUnitDone()
- Specified by:
getUnitDonein classorg.homedns.dade.jcgrid.WorkResult
-
-
DMelt 3.0 © DataMelt by jWork.ORG