AstraLog-HPC
Loading...
Searching...
No Matches
RuleOrdering.hpp
Go to the documentation of this file.
1
7#pragma once
8#include <unordered_map>
9#include <vector>
10#include <memory>
11#include "Strategy.hpp"
12
22 std::unordered_map<std::string,
23 std::vector<std::shared_ptr<RuleStrategy>>> primary_by_sensor;
24
29 std::vector<std::shared_ptr<RuleStrategy>> correlation_rules;
30};
31
45 const std::unordered_map<std::string, std::shared_ptr<RuleStrategy>>& ruleMap,
46 const std::vector<RuleConfig>& configs);
47
57void printpipeline(EvaluationPipeline& pipeline);
void printpipeline(EvaluationPipeline &pipeline)
Prints the structure and contents of the given evaluation pipeline for debugging or logging.
Definition RuleOrdering.cpp:59
EvaluationPipeline buildPipeline(const std::unordered_map< std::string, std::shared_ptr< RuleStrategy > > &ruleMap, const std::vector< RuleConfig > &configs)
Builds an evaluation pipeline by organizing and sorting rules.
Definition RuleOrdering.cpp:18
Abstract class for the strategy pattern, defining the interface for different rule strategies.
Holds the categorized and organized rules ready for execution.
Definition RuleOrdering.hpp:17
std::vector< std::shared_ptr< RuleStrategy > > correlation_rules
Collection of correlation rules.
Definition RuleOrdering.hpp:29
std::unordered_map< std::string, std::vector< std::shared_ptr< RuleStrategy > > > primary_by_sensor
Map of primary rules grouped by their target sensor ID.
Definition RuleOrdering.hpp:23