Grail (C++)  1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::data::EvaluationDebugData Class Reference

The EvaluationDebugData class - debug data describing singular evaluator. More...

#include <EvaluationDebugData.h>

Public Member Functions

 EvaluationDebugData (EvaluatorType evaluatorType, float score, unsigned int nodeIndex)
 EvaluationDebugData - constructor used when dumping debug data. More...
 
void AddChildNode (unsigned int childNodeIndex)
 AddChildNode - add node as leaf/child to this data node. More...
 
EvaluatorType GetEvaluatorType () const
 GetEvaluatorType - provides type of the evalutor described by this debug data. More...
 
float GetScore () const
 GetScore - provides output of the evaluator descibed by this debug data. More...
 
unsigned int GetNodeIndex () const
 GetNodeIndex - provides this nodes position in debug tree. More...
 
const std::vector< unsigned int > & GetChildNodes () const
 GetChildNodes - provides indexes of all nodes attached to this node as children. More...
 
const std::string & GetMetadata () const
 GetMetadata - provides a metadata string. More...
 
void SetMetadata (const std::string &newMetadata)
 

Detailed Description

The EvaluationDebugData class - debug data describing singular evaluator.

Constructor & Destructor Documentation

◆ EvaluationDebugData()

grail::data::EvaluationDebugData::EvaluationDebugData ( EvaluatorType  evaluatorType,
float  score,
unsigned int  nodeIndex 
)

EvaluationDebugData - constructor used when dumping debug data.

Parameters
evaluatorType- type of evaluator which this data describes
score- evaluator output
nodeIndex- arbitrary node index, identifying data's position in debug tree

Member Function Documentation

◆ AddChildNode()

void grail::data::EvaluationDebugData::AddChildNode ( unsigned int  childNodeIndex)

AddChildNode - add node as leaf/child to this data node.

Parameters
childNodeIndex- node index of newly attached child

◆ GetChildNodes()

const std::vector< unsigned int > & grail::data::EvaluationDebugData::GetChildNodes ( ) const

GetChildNodes - provides indexes of all nodes attached to this node as children.

Returns
vector of indexes of all child nodes

◆ GetEvaluatorType()

EvaluatorType grail::data::EvaluationDebugData::GetEvaluatorType ( ) const

GetEvaluatorType - provides type of the evalutor described by this debug data.

Returns
evaluator type

◆ GetMetadata()

const std::string & grail::data::EvaluationDebugData::GetMetadata ( ) const

GetMetadata - provides a metadata string.

Returns
a string description of the evaluator's metadata

◆ GetNodeIndex()

unsigned int grail::data::EvaluationDebugData::GetNodeIndex ( ) const

GetNodeIndex - provides this nodes position in debug tree.

Returns
node index indetifying position in debug tree

◆ GetScore()

float grail::data::EvaluationDebugData::GetScore ( ) const

GetScore - provides output of the evaluator descibed by this debug data.

Returns
score - evaluator output

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