JGAP

examples.grid.fitnessDistributed
Class MyWorkerReturnStrategy

java.lang.Object
  extended by examples.grid.fitnessDistributed.MyWorkerReturnStrategy
All Implemented Interfaces:
java.io.Serializable, IWorkerReturnStrategy

public class MyWorkerReturnStrategy
extends java.lang.Object
implements IWorkerReturnStrategy

Just compute the fitness value in our example, where only fitness value computation is dirtibuted.

Since:
3.2
See Also:
Serialized Form

Constructor Summary
MyWorkerReturnStrategy()
           
 
Method Summary
 JGAPResult assembleResult(JGAPRequest a_req, Genotype a_genotype)
          Computes fitness of one chromosome and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyWorkerReturnStrategy

public MyWorkerReturnStrategy()
Method Detail

assembleResult

public JGAPResult assembleResult(JGAPRequest a_req,
                                 Genotype a_genotype)
                          throws java.lang.Exception
Computes fitness of one chromosome and returns it.

Specified by:
assembleResult in interface IWorkerReturnStrategy
Parameters:
a_req - JGAPRequest
a_genotype - Genotype
Returns:
JGAPResult
Throws:
java.lang.Exception - in case of any error
Since:
3.2

JGAP