 |
Grail (C++)
1.2.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
3 #ifndef GRAIL_EVALUATION_DEBUG_DATA_H
4 #define GRAIL_EVALUATION_DEBUG_DATA_H
8 #include "../UtilityModel/EvaluatorType.h"
12 template <
typename DataType>
72 void SetMetadata(
const std::string& newMetadata);
75 EvaluatorType evaluatorType{};
77 std::size_t nodeIndex{};
78 std::vector<std::size_t> childNodes{};
79 std::string metadata{};
The EvaluationDebugData class - debug data describing singular evaluator.
Definition: EvaluationDebugData.h:23
EvaluatorType GetEvaluatorType() const
GetEvaluatorType - provides type of the evalutor described by this debug data.
Definition: EvaluationDebugData.cpp:19
const std::string & GetMetadata() const
GetMetadata - provides a metadata string.
Definition: EvaluationDebugData.cpp:23
float GetScore() const
GetScore - provides output of the evaluator descibed by this debug data.
Definition: EvaluationDebugData.cpp:20
const std::vector< std::size_t > & GetChildNodes() const
GetChildNodes - provides indexes of all nodes attached to this node as children.
Definition: EvaluationDebugData.cpp:22
void AddChildNode(std::size_t childNodeIndex)
AddChildNode - add node as leaf/child to this data node.
Definition: EvaluationDebugData.cpp:14
std::size_t GetNodeIndex() const
GetNodeIndex - provides this nodes position in debug tree.
Definition: EvaluationDebugData.cpp:21