$darkmode
DENOPTIM
denoptim.programs.fitnessevaluator.FPRunner Class Reference

Runs a fitness provider task as defined in the static parameters. More...

Collaboration diagram for denoptim.programs.fitnessevaluator.FPRunner:
[legend]

Public Member Functions

 FPRunner (FRParameters settings)
 Constructor. More...
 
void stopRun ()
 Stops all subtasks and shutdown executor. More...
 
void run () throws Exception
 Create and run the fitness task. More...
 

Package Attributes

final Map< FitnessTask, Future< Object > > futures
 Storage of references to the submitted subtasks as Future. More...
 
final List< FitnessTasksubmitted
 Storage of references to the submitted subtasks. More...
 
final ThreadPoolExecutor tpe
 Asynchronous tasks manager. More...
 

Private Member Functions

void cleanupCompleted ()
 Removes only tasks that are marked as completed. More...
 
void cleanup ()
 clean all reference to submitted tasks More...
 

Private Attributes

FRParameters settings
 The parameters controlling the. More...
 
int numThreads = 1
 Number of parallel fitness evaluations we run. More...
 

Detailed Description

Runs a fitness provider task as defined in the static parameters.

This class is meant to execute fitness provider tasks from the GUI or the CLI in a stand-alone fashion, i.e., without running GARunner or FragSpaceExplorer.

Author
Marco Foscato

Definition at line 56 of file FPRunner.java.

Constructor & Destructor Documentation

◆ FPRunner()

denoptim.programs.fitnessevaluator.FPRunner.FPRunner ( FRParameters  settings)

Member Function Documentation

◆ cleanup()

void denoptim.programs.fitnessevaluator.FPRunner.cleanup ( )
private

clean all reference to submitted tasks

Definition at line 270 of file FPRunner.java.

References denoptim.programs.fitnessevaluator.FPRunner.futures, denoptim.programs.fitnessevaluator.FPRunner.submitted, and denoptim.programs.fitnessevaluator.FPRunner.tpe.

Referenced by denoptim.programs.fitnessevaluator.FPRunner.FPRunner(), and denoptim.programs.fitnessevaluator.FPRunner.stopRun().

Here is the caller graph for this function:

◆ cleanupCompleted()

void denoptim.programs.fitnessevaluator.FPRunner.cleanupCompleted ( )
private

Removes only tasks that are marked as completed.

Definition at line 246 of file FPRunner.java.

References denoptim.programs.fitnessevaluator.FPRunner.futures, and denoptim.programs.fitnessevaluator.FPRunner.submitted.

Referenced by denoptim.programs.fitnessevaluator.FPRunner.run().

Here is the caller graph for this function:

◆ run()

◆ stopRun()

void denoptim.programs.fitnessevaluator.FPRunner.stopRun ( )

Stops all subtasks and shutdown executor.

Definition at line 158 of file FPRunner.java.

References denoptim.programs.fitnessevaluator.FPRunner.cleanup(), and denoptim.programs.fitnessevaluator.FPRunner.tpe.

Referenced by denoptim.programs.fitnessevaluator.FitnessRunner.handleThrowable().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ futures

final Map<FitnessTask,Future<Object> > denoptim.programs.fitnessevaluator.FPRunner.futures
package

◆ numThreads

int denoptim.programs.fitnessevaluator.FPRunner.numThreads = 1
private

Number of parallel fitness evaluations we run.

Definition at line 83 of file FPRunner.java.

Referenced by denoptim.programs.fitnessevaluator.FPRunner.FPRunner(), and denoptim.programs.fitnessevaluator.FPRunner.run().

◆ settings

FRParameters denoptim.programs.fitnessevaluator.FPRunner.settings
private

The parameters controlling the.

Definition at line 76 of file FPRunner.java.

Referenced by denoptim.programs.fitnessevaluator.FPRunner.FPRunner(), and denoptim.programs.fitnessevaluator.FPRunner.run().

◆ submitted

final List<FitnessTask> denoptim.programs.fitnessevaluator.FPRunner.submitted
package

◆ tpe

final ThreadPoolExecutor denoptim.programs.fitnessevaluator.FPRunner.tpe
package

The documentation for this class was generated from the following file: