JGAP

examples.grid.evolutionDistributed
Class MyWorkerReturnStrategy

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

public class MyWorkerReturnStrategy
extends java.lang.Object
implements IWorkerReturnStrategy

Return the top 10 results to the client.

Since:
3.2
See Also:
Serialized Form

Constructor Summary
MyWorkerReturnStrategy()
           
 
Method Summary
 JGAPResult assembleResult(JGAPRequest a_req, Genotype a_genotype)
          Determines the top 10 chromosomes and returns them.
 
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
Determines the top 10 chromosomes and returns them.

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