Base class for an Evaluator aggregating multiple other Evaluators' scores into one output.
More...
|
| sealed override void | DebugDump (IReadOnlyDictionary< object, int > nodeMapping, ref EvaluationDebugData debugData) |
| | 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...
|
| |
| abstract float | Evaluate (ContextType context, in UtilityEvaluatorSnapshot snapshot) |
| | Called from EvaluateContext which also evaluates context, but without automatically filling snapshot with debug data. Should be overriden for each derived Evaluator. More...
|
| |
|
|
readonly List< Evaluator< ContextType > > | childEvaluators = new List<Evaluator<ContextType>>() |
| |
|
|
static void | CacheConsiderationEvaluations (Evaluator< ContextType > evaluator, ContextType context) |
| |
|
abstract EvaluatorType | EvaluatorType [get] |
| |
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()
Constructor.
- Parameters
-
| childEvaluators | All evaluators which scores should be aggregated during evaluation of this node. |
◆ 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.Evaluators.Evaluator< ContextType >.
The documentation for this class was generated from the following file:
- GrailEvaluators/source/Aggregators/Aggregator.cs