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, setArguments
public 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.15 Release Date : December 3 2024