JGAP

examples.grid.evolutionDistributed
Class MyGAWorker

java.lang.Object
  extended by org.jgap.distr.grid.JGAPWorker
      extended by examples.grid.evolutionDistributed.MyGAWorker

public class MyGAWorker
extends JGAPWorker

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.JGAPWorker
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 JGAPWorker
Parameters:
a_work - WorkRequest
a_workDir - String
Returns:
WorkResult
Throws:
java.lang.Exception
Since:
3.2

JGAP