The Aggregator class - Base class for an Evaluator aggregating multiple other Evaluators' scores into one output.
More...
#include <Aggregator.hh>
|
virtual void | DebugDump (const std::map< const void *, unsigned int > &nodeMapping, data::EvaluationDebugData &debugData) const override |
| DebugDump - Called from EvaluateContext, which generates additional debug data for each evaluator. Should be overriden in each derived evaluator to better reflect debug tree topology. More...
|
|
virtual float | Evaluate (const ContextType &context, data::UtilityEvaluatorSnapshot *const snapshot) const =0 |
| Evaluate - Called from EvaluateContext which also evaluates context, but without automatically filling snapshot with debug data. Should be overriden for each derived Evaluator. More...
|
|
|
std::vector< std::shared_ptr< Evaluator< ContextType > > > | childEvaluators {} |
|
template<typename ContextType>
class grail::evaluator::Aggregator< ContextType >
The Aggregator class - Base class for an Evaluator aggregating multiple other Evaluators' scores into one output.
- Template Parameters
-
ContextType | - Type of evaluated object. By default - ValueTuple(AIEntity, Blackboard). |
◆ Aggregator()
template<typename ContextType >
Aggregator - Constructor.
- Parameters
-
childEvaluators | - All evaluators which scores should be aggregated during evaluation of this node. |
◆ DebugDump()
template<typename ContextType >
|
inlineoverrideprotectedvirtual |
DebugDump - Called from EvaluateContext, which generates additional debug data for each evaluator. Should be overriden in each derived evaluator to better reflect debug tree topology.
- Parameters
-
nodeMapping | - Maps node pointers to node index. |
debugData | - Evaluation debug data which will be filled in this method |
Implements grail::evaluator::Evaluator< ContextType >.
The documentation for this class was generated from the following file: