JGAP

org.jgap.impl.job
Class SimpleJobConsumer

java.lang.Object
  extended by 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

Constructor Summary
SimpleJobConsumer()
           
 
Method Summary
 EvolveResult[] getResults()
           
 void init()
           
static void main(java.lang.String[] args)
           
 void pushJobToGrid(IJob a_job)
           
 void waitForAllJobs()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleJobConsumer

public SimpleJobConsumer()
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

JGAP