ECF 1.5
Public Member Functions | Public Attributes | List of all members
NQueensEvalOp Class Reference
Inheritance diagram for NQueensEvalOp:
Problem EvaluateOp

Public Member Functions

bool initialize (StateP)
 Initialize the evaluator. Called before first evaluation occurs. More...
 
FitnessP evaluate (IndividualP individual)
 Evaluate a single individual. Method must create and return a Fitness object. More...
 
MoveP randomMove (IndividualP)
 
bool applyMove (IndividualP &, MoveP)
 
PathP initPathTo (IndividualP, IndividualP)
 
int getPathLength (PathP)
 
MoveP nextRandomMove (PathP)
 
void populateSolutionInstance (IndividualP, struct solution *)
 
void readSolutionInstance (IndividualP, struct solution *)
 
- Public Member Functions inherited from Problem
virtual MoveP randomMove (IndividualP)
 
virtual bool applyMove (IndividualP &, MoveP)
 
virtual PathP initPathTo (IndividualP, IndividualP)
 
virtual PathP initPathAwayFrom (IndividualP)
 
virtual int getPathLength (PathP)
 
virtual MoveP nextRandomMove (PathP)
 
- Public Member Functions inherited from EvaluateOp
virtual FitnessP evaluate (IndividualP)=0
 Evaluate a single individual. Method must create and return a Fitness object. More...
 
virtual void registerParameters (StateP)
 Register evaluator parameters. Called before EvaluateOp::initialize method. More...
 
virtual bool initialize (StateP)
 Initialize the evaluator. Called before first evaluation occurs. More...
 

Public Attributes

StateP state_
 
struct problemproblemInstance
 
struct solutionsolutionInstance
 
struct solutionsolutionInstance2
 
struct movemoveInstance
 
struct pathStatepsInstance
 

Detailed Description

Definition at line 28 of file NQueensEvalOp.h.

Member Function Documentation

◆ applyMove()

bool NQueensEvalOp::applyMove ( IndividualP &  ind,
MoveP  move 
)
virtual

Reimplemented from Problem.

Definition at line 55 of file NQueensEvalOp.cpp.

◆ evaluate()

FitnessP NQueensEvalOp::evaluate ( IndividualP  )
virtual

Evaluate a single individual. Method must create and return a Fitness object.

Implements EvaluateOp.

Definition at line 93 of file NQueensEvalOp.cpp.

◆ getPathLength()

int NQueensEvalOp::getPathLength ( PathP  path)
virtual

Reimplemented from Problem.

Definition at line 78 of file NQueensEvalOp.cpp.

◆ initialize()

bool NQueensEvalOp::initialize ( StateP  )
virtual

Initialize the evaluator. Called before first evaluation occurs.

Reimplemented from EvaluateOp.

Definition at line 5 of file NQueensEvalOp.cpp.

◆ initPathTo()

PathP NQueensEvalOp::initPathTo ( IndividualP  ind1,
IndividualP  ind2 
)
virtual

Reimplemented from Problem.

Definition at line 68 of file NQueensEvalOp.cpp.

◆ nextRandomMove()

MoveP NQueensEvalOp::nextRandomMove ( PathP  path)
virtual

Reimplemented from Problem.

Definition at line 85 of file NQueensEvalOp.cpp.

◆ populateSolutionInstance()

void NQueensEvalOp::populateSolutionInstance ( IndividualP  ind,
struct solution s 
)

Definition at line 24 of file NQueensEvalOp.cpp.

◆ randomMove()

MoveP NQueensEvalOp::randomMove ( IndividualP  ind)
virtual

Reimplemented from Problem.

Definition at line 46 of file NQueensEvalOp.cpp.

◆ readSolutionInstance()

void NQueensEvalOp::readSolutionInstance ( IndividualP  ind,
struct solution s 
)

Definition at line 35 of file NQueensEvalOp.cpp.

Member Data Documentation

◆ moveInstance

struct move* NQueensEvalOp::moveInstance

Definition at line 47 of file NQueensEvalOp.h.

◆ problemInstance

struct problem* NQueensEvalOp::problemInstance

Definition at line 45 of file NQueensEvalOp.h.

◆ psInstance

struct pathState* NQueensEvalOp::psInstance

Definition at line 48 of file NQueensEvalOp.h.

◆ solutionInstance

struct solution* NQueensEvalOp::solutionInstance

Definition at line 46 of file NQueensEvalOp.h.

◆ solutionInstance2

struct solution * NQueensEvalOp::solutionInstance2

Definition at line 46 of file NQueensEvalOp.h.

◆ state_

StateP NQueensEvalOp::state_

Definition at line 31 of file NQueensEvalOp.h.


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