public class FitnessJob extends ComputeJobAdapter
| Constructor and Description |
|---|
FitnessJob(Long key,
IFitnessFunction fitnessFunction) |
| Modifier and Type | Method and Description |
|---|---|
Double |
execute()
Perform fitness operation utilizing IFitnessFunction
Update chromosome's fitness value
|
argument, arguments, call, cancel, isCancelled, setArgumentspublic FitnessJob(Long key, IFitnessFunction fitnessFunction)
key - Chromosome primary KeyfitnessFunction - Fitness function defined by developerpublic Double execute() throws IgniteException
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