JGAP

examples.grid.mathProblemDistributed
Class MyGAWorker

java.lang.Object
  extended by org.jgap.distr.grid.gp.JGAPWorkerGP
      extended by examples.grid.mathProblemDistributed.MyGAWorker

public class MyGAWorker
extends JGAPWorkerGP

Receives work, computes a solution and returns the solution to the requester. This is done by solely using the JGAP standard mechanism of the super class, JGAPWorker. You could do differently, see other examples provided with JGAP.

Since:
3.2

Constructor Summary
MyGAWorker()
           
 
Method Summary
 WorkResult doWork(WorkRequest a_work, java.lang.String a_workDir)
          Executes the evolution and returns the result.
 
Methods inherited from class org.jgap.distr.grid.gp.JGAPWorkerGP
main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyGAWorker

public MyGAWorker()
Method Detail

doWork

public WorkResult doWork(WorkRequest a_work,
                         java.lang.String a_workDir)
                  throws java.lang.Exception
Executes the evolution and returns the result.

Overrides:
doWork in class JGAPWorkerGP
Parameters:
a_work - WorkRequest
a_workDir - String
Returns:
WorkResult
Throws:
java.lang.Exception
Since:
3.2

JGAP