org.jgap.impl.job
Class SimpleJobConsumer
- java.lang.Object
-
- org.jgap.impl.job.SimpleJobConsumer
-
public class SimpleJobConsumer extends java.lang.ObjectSample implementation of a service that generates jobs, takes them, executes them, receives results from finished jobs and merges the results in order to start a new round of evolution.- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor and Description SimpleJobConsumer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description EvolveResult[]getResults()voidinit()static voidmain(java.lang.String[] args)voidpushJobToGrid(IJob a_job)voidwaitForAllJobs()
-
-
-
Method Detail
-
pushJobToGrid
public void pushJobToGrid(IJob a_job)
-
waitForAllJobs
public void waitForAllJobs()
-
getResults
public EvolveResult[] getResults()
-
init
public void init() throws java.lang.Exception- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
DMelt 3.0 © DataMelt by jWork.ORG