GEGELATI
Public Member Functions | List of all members
TPG::TPGExecutionEngineInstrumented Class Reference

#include <tpgExecutionEngineInstrumented.h>

Inheritance diagram for TPG::TPGExecutionEngineInstrumented:
TPG::TPGExecutionEngine

Public Member Functions

 TPGExecutionEngineInstrumented (const Environment &env, Archive *arch=NULL)
 Main constructor of the class. More...
 
double evaluateEdge (const TPGEdge &edge) override
 Specialization of the evaluateEdge function. More...
 
const TPG::TPGEdgeevaluateTeam (const TPGTeam &team, const std::vector< const TPGVertex * > &excluded) override
 Specialization of the evaluateTeam function. More...
 
const std::vector< const TPGVertex * > executeFromRoot (const TPGVertex &root) override
 Specialization of the evaluateTeam function. More...
 
- Public Member Functions inherited from TPG::TPGExecutionEngine
 TPGExecutionEngine (const Environment &env, Archive *arch=NULL)
 Main constructor of the class. More...
 
virtual ~TPGExecutionEngine ()=default
 Default virtual destructor.
 
void setArchive (Archive *newArchive)
 Set a new Archive for storing Program results. More...
 
virtual double evaluateEdge (const TPGEdge &edge)
 Execute the Program associated to an Edge and returns the obtained double. More...
 
virtual const TPG::TPGEdgeevaluateTeam (const TPGTeam &team, const std::vector< const TPGVertex * > &excluded)
 Evaluate all the Program of the outgoing TPGEdge of the TPGTeam. More...
 
virtual const std::vector< const TPGVertex * > executeFromRoot (const TPGVertex &root)
 Execute the TPGGraph starting from the given TPGVertex. More...
 

Additional Inherited Members

- Protected Attributes inherited from TPG::TPGExecutionEngine
Archivearchive
 Archive for recording Program results.
 
Program::ProgramExecutionEngine progExecutionEngine
 ProgramExecutionEngine for executing Programs of edges. More...
 

Detailed Description

Specialization of the TPGExecutionEngine class.

Constructor & Destructor Documentation

◆ TPGExecutionEngineInstrumented()

TPG::TPGExecutionEngineInstrumented::TPGExecutionEngineInstrumented ( const Environment env,
Archive arch = NULL 
)
inline

Main constructor of the class.

Parameters
[in]envEnvironment in which the Program of the TPGGraph will be executed.
[in]archpointer to the Archive for storing recordings of the Program Execution. By default, a NULL pointer is given, meaning that no recording of the execution will be made.

Member Function Documentation

◆ evaluateEdge()

double TPG::TPGExecutionEngineInstrumented::evaluateEdge ( const TPGEdge edge)
overridevirtual

Specialization of the evaluateEdge function.

In addition to calling the evaluateEdge method from TPGExecutionEngine, this specialization increments the number of visits of the evaluated TPGEdge.

Reimplemented from TPG::TPGExecutionEngine.

◆ evaluateTeam()

const TPG::TPGEdge & TPG::TPGExecutionEngineInstrumented::evaluateTeam ( const TPGTeam team,
const std::vector< const TPGVertex * > &  excluded 
)
overridevirtual

Specialization of the evaluateTeam function.

In addition to calling the evaluateTeam method from TPGExecutionEngine, this specialization increments the number of visits of the evaluated TPGTeam and the number of traversal of the TPGEdge with the winning bid.

Reimplemented from TPG::TPGExecutionEngine.

◆ executeFromRoot()

const std::vector< const TPG::TPGVertex * > TPG::TPGExecutionEngineInstrumented::executeFromRoot ( const TPGVertex root)
overridevirtual

Specialization of the evaluateTeam function.

In addition to calling the executeFromRoot method from TPGExecutionEngine, this specialization increments the number of visits of the reached TPGAction.

Reimplemented from TPG::TPGExecutionEngine.


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