|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.impl.job.JobBase
org.jgap.impl.job.EvolveJob
public class EvolveJob
A job that evolves a population. The evolution takes place as given by the configuration. It operates on a population also provided. This class utilizes sub jobs to perform its sub-tasks. Each sub job may either be a local implementation satisfying the IJob interface. Or it may be a job that eventually is put onto the grid and returns with a result!
| Constructor Summary | |
|---|---|
EvolveJob(JobData a_data)
|
|
| Method Summary | |
|---|---|
protected void |
applyGeneticOperators(Configuration a_config,
Population a_pop)
Applies all GeneticOperators registered with the Configuration. |
protected Population |
applyNaturalSelectors(Configuration a_config,
Population a_pop,
boolean a_processBeforeGeneticOperators)
Applies all NaturalSelectors registered with the Configuration. |
EvolveResult |
evolve(EvolveData a_evolveData)
Does the genetic evolution. |
JobResult |
execute(JobData a_data)
Execute the evolution via JGAP. |
| Methods inherited from class org.jgap.impl.job.JobBase |
|---|
getJobData, getResult, isFinished, run, setFinished |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jgap.impl.job.IJob |
|---|
getJobData, getResult, isFinished, run |
| Constructor Detail |
|---|
public EvolveJob(JobData a_data)
| Method Detail |
|---|
public JobResult execute(JobData a_data)
throws java.lang.Exception
execute in interface IJoba_data - input parameter of type EvolveData
java.lang.Exception - in case of any errorpublic EvolveResult evolve(EvolveData a_evolveData)
a_evolveData - parameters for the evolution
protected Population applyNaturalSelectors(Configuration a_config,
Population a_pop,
boolean a_processBeforeGeneticOperators)
a_processBeforeGeneticOperators - true apply NaturalSelectors
applicable before GeneticOperators, false: apply the ones applicable
after GeneticOperators
protected void applyGeneticOperators(Configuration a_config,
Population a_pop)
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||