org.jgap.distr.grid
Class JGAPWorker
- java.lang.Object
-
- org.jgap.distr.grid.JGAPWorker
-
- All Implemented Interfaces:
- org.homedns.dade.jcgrid.worker.Worker
public class JGAPWorker extends java.lang.Object implements org.homedns.dade.jcgrid.worker.WorkerA worker receives work units from a JGAPServer and sends back computed solutions to the same JGAPServer.- Since:
- 3.2 (since 3.01 this class contained something different that is now in class org.jgap.distr.grid.JGAPWorkers)
-
-
Constructor Summary
Constructors Constructor and Description JGAPWorker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description org.homedns.dade.jcgrid.WorkResultdoWork(org.homedns.dade.jcgrid.WorkRequest work, java.lang.String workDir)Executes the evolution and returns the result.static voidmain(java.lang.String[] args)Convenience method to start the worker.
-
-
-
Method Detail
-
doWork
public org.homedns.dade.jcgrid.WorkResult doWork(org.homedns.dade.jcgrid.WorkRequest work, java.lang.String workDir) throws java.lang.ExceptionExecutes the evolution and returns the result.- Specified by:
doWorkin interfaceorg.homedns.dade.jcgrid.worker.Worker- Parameters:
work- WorkRequestworkDir- String- Returns:
- WorkResult
- Throws:
java.lang.Exception- Since:
- 3.01
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionConvenience method to start the worker.- Parameters:
args- command-line arguments, such as server address- Throws:
java.lang.Exception- Since:
- 3.01
-
-
DMelt 3.0 © DataMelt by jWork.ORG