public class FitnessJob extends ComputeJobAdapter
| Constructor and Description |
|---|
FitnessJob(Long key,
IFitnessFunction fitnessFunction) |
| Modifier and Type | Method and Description |
|---|---|
Double |
execute()
Executes this job.
|
argument, arguments, call, cancel, isCancelled, setArgumentspublic FitnessJob(Long key, IFitnessFunction fitnessFunction)
key - Chromosome primary KeyfitnessFunction - Fitness function defined by developerpublic Double 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.
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025