JGAP

org.jgap.distr.grid.gp
Class JGAPWorkerGP

java.lang.Object
  extended by org.jgap.distr.grid.gp.JGAPWorkerGP
Direct Known Subclasses:
MyGAWorker

public class JGAPWorkerGP
extends java.lang.Object

A GP worker receives work units from a JGAPServer and sends back computed solutions to the same JGAPServer.

Since:
3.2

Constructor Summary
JGAPWorkerGP()
           
 
Method Summary
 WorkResult doWork(WorkRequest work, java.lang.String workDir)
          Executes the evolution and returns the result.
static void main(java.lang.String[] args)
          Convenience method to start the worker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGAPWorkerGP

public JGAPWorkerGP()
Method Detail

doWork

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

Parameters:
work - WorkRequest
workDir - String
Returns:
WorkResult
Throws:
java.lang.Exception
Since:
3.01

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Convenience method to start the worker.

Parameters:
args - command-line arguments, such as server address. See
Throws:
java.lang.Exception
Since:
3.01

JGAP