public class CrossOverJob extends ComputeJobAdapter
It relies on the GAConfiguration.getCrossOverRate() to determine probability rate of crossover for pair of
chromosome.
CrossOverJob will randomly pick a start index j in Chromosome.getGenes[] and continue
swapping until end of genes[] array.
Constructor and Description |
---|
CrossOverJob(Long key1,
Long key2,
double crossOverRate) |
Modifier and Type | Method and Description |
---|---|
Object |
execute()
Perform crossover operation
|
argument, arguments, call, cancel, isCancelled, setArguments
public Object execute() throws IgniteException
null
). This result will be returned
in ComputeJobResult.getData()
method passed into
ComputeTask.result(ComputeJobResult, List)
task method on caller node.IgniteException
- If job execution caused an exception. This exception will be
returned in ComputeJobResult.getException()
method passed into
ComputeTask.result(ComputeJobResult, List)
task method on caller node.
If execution produces a RuntimeException
or Error
, then
it will be wrapped into IgniteCheckedException
.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019