Package org.jppf.ga
Class CrossoverTask
- All Implemented Interfaces:
Serializable,Runnable,Interruptibility,PositionalElement<Task<Chromosome>>,Task<Chromosome>
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jppf.node.protocol.AbstractTask
compute, fireNotification, getDataProvider, getId, getJob, getMaxResubmits, getNode, getPosition, getResult, getTaskClassLoader, getTaskObject, getThrowable, getTimeoutSchedule, isInNode, isInterruptible, isResubmit, onCancel, onTimeout, setDataProvider, setExecutionDispatcher, setId, setInNode, setJob, setMaxResubmits, setNode, setPosition, setResubmit, setResult, setThrowable, setTimeoutSchedule
-
Field Details
-
index
public int indexIndex of the resulting chromosme in the population -
pos
public int posCrossover position.
-
-
Constructor Details
-
CrossoverTask
- Parameters:
c1- first chromosome to crossover.c2- second chromosome to crossover.index- index of the resulting chromosme in the populationpos- crossover position.
-
-
Method Details
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classAbstractTask<Chromosome>
-