|
AstraLog-HPC
|
Responsible for applying rule strategies to data points and generating evaluation results. More...
#include <Evaluate.hpp>

Public Member Functions | |
| Evaluate ()=default | |
| Default constructor. | |
| EvaluationResult | evaluateRule (const DataPoint ¤t_data, const std::shared_ptr< RuleStrategy > &rule) |
| Evaluates primary rules (Simple, Step, Stateful) against a specific data point. | |
| EvaluationResult | evaluateCorrelation (const std::shared_ptr< RuleStrategy > &rule, const ResultMap ¤t_timestamp_results, const std::vector< DataPoint > &ts_data, const std::unordered_map< std::string, std::vector< std::string > > &rule_to_sensors) |
| Evaluates correlation rules by analyzing the outcomes of all evaluated rules for the current timestamp. | |
Responsible for applying rule strategies to data points and generating evaluation results.
|
default |
Default constructor.
| EvaluationResult Evaluate::evaluateCorrelation | ( | const std::shared_ptr< RuleStrategy > & | rule, |
| const ResultMap & | current_timestamp_results, | ||
| const std::vector< DataPoint > & | ts_data, | ||
| const std::unordered_map< std::string, std::vector< std::string > > & | rule_to_sensors | ||
| ) |
Evaluates correlation rules by analyzing the outcomes of all evaluated rules for the current timestamp.
| rule | A shared pointer to the correlation rule strategy. |
| current_timestamp_results | The map containing the true/false outcomes of all evaluated rules for this timestamp. |
| ts_data | The data points for the current timestamp. |
| rule_to_sensors | Map from rule ID to its leaf sensor IDs. Primary rules map to a single sensor; correlation rules map to the union of their conditions' leaf sensors (built incrementally as they fire). |
| EvaluationResult Evaluate::evaluateRule | ( | const DataPoint & | current_data, |
| const std::shared_ptr< RuleStrategy > & | rule | ||
| ) |
Evaluates primary rules (Simple, Step, Stateful) against a specific data point.
| current_data | The data point to be evaluated. |
| rule | A shared pointer to the primary rule strategy to apply. |