org.jgap.impl.job
Class SimpleJobConsumer
java.lang.Object
org.jgap.impl.job.SimpleJobConsumer
public class SimpleJobConsumer
- extends java.lang.Object
Sample 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleJobConsumer
public SimpleJobConsumer()
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