JGAP

org.jgap.distr.grid
Class JGAPResult

java.lang.Object
  extended by WorkResult
      extended by org.jgap.distr.grid.JGAPResult
Direct Known Subclasses:
MyResult

public class JGAPResult
extends WorkResult

Holds the result of a worker.

Since:
3.1

Constructor Summary
JGAPResult(java.lang.String name, int id, IChromosome a_fittestChrom, long a_unitdone)
          Deprecated. use other constructor with Population parameter instead
JGAPResult(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
 IChromosome getFittest()
          Deprecated. use getPopulation instead
 Population getPopulation()
           
 long getUnitDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 - String
id - int
a_fittestChrom - IChromosome
a_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 results
id - ID of the result, should be unique must need not
a_chromosomes - the result of a worker's computation
a_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()

JGAP