GEGELATI
|
#include <tpgExecutionEngineInstrumented.h>
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::TPGEdge & | evaluateTeam (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... | |
![]() | |
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::TPGEdge & | evaluateTeam (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 | |
![]() | |
Archive * | archive |
Archive for recording Program results. | |
Program::ProgramExecutionEngine | progExecutionEngine |
ProgramExecutionEngine for executing Programs of edges. More... | |
Specialization of the TPGExecutionEngine class.
|
inline |
Main constructor of the class.
[in] | env | Environment in which the Program of the TPGGraph will be executed. |
[in] | arch | pointer 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. |
|
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.
|
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.
|
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.