30 Engine(
const std::string& output_path,
const std::string& alarms_path,
const std::string& stateful_path,
const std::string& step_diff_path) {
31 outputManager = std::make_unique<OutputManager>(output_path, alarms_path, stateful_path, step_diff_path);
58 void run(
const std::string& batch_path,
size_t num_sensors);
Definition of the Evaluate class and evaluation structures for rule processing.
Definition of the OutputManager class, responsible for managing the output files for valid data and a...
Definition of the data structures and utility functions used across the Engine folder.
std::vector< DataPoint > Batch
Batch groups all the data points for a single timestamp.
Definition Types.hpp:29
Coordinates the loading of rules, processing of data batches, and writing of results.
Definition RunEngine.hpp:19
std::unique_ptr< Evaluate > evaluator
Component responsible for evaluating data against the loaded rules.
Definition RunEngine.hpp:63
std::unique_ptr< OutputManager > outputManager
Manager handling the file streams for results and alarms.
Definition RunEngine.hpp:62
void run(const std::string &batch_path, size_t num_sensors)
Processes a batch of data points received from the collector/validator.
Definition RunEngine.cpp:19
void loadRules(const std::string &path)
Loads the evaluation rules from the specified path and initializes the RulesFactory.
Definition RunEngine.hpp:39
Batch current_batch
The internal batch of data currently being processed.
Definition RunEngine.hpp:65
size_t get_num_sensors(const std::string &path)
Retrieves the total number of sensors configured in the system.
Definition RunEngine.cpp:382
std::unique_ptr< RulesFactory > rulesFactory
Factory responsible for creating and managing rule strategies.
Definition RunEngine.hpp:61
Engine(const std::string &output_path, const std::string &alarms_path, const std::string &stateful_path, const std::string &step_diff_path)
Constructs an Engine with explicit output file paths.
Definition RunEngine.hpp:30