10#include <nlohmann/json.hpp>
15using json = nlohmann::json;
void setAction(std::unique_ptr< Action > action)
Definition Rule.cc:15
json serialize_json()
Definition Rule.cc:17
int receive_tag
RuleEngine will assign a message with this tag to this rule.
Definition Rule.h:25
int send_tag
used to denote which rules should receive this message
Definition Rule.h:24
std::unique_ptr< Action > action
Definition Rule.h:29
void setName(std::string rule_name)
Definition Rule.h:33
Rule(json serialized)
Definition Rule.h:23
Rule()
Definition Rule.h:20
std::vector< QnicInterface > qnic_interfaces
Definition Rule.h:26
std::string name
Definition Rule.h:27
void setCondition(std::unique_ptr< Condition > condition)
Definition Rule.cc:13
void deserialize_json(json serialized)
Definition Rule.cc:32
std::unique_ptr< Condition > condition
Condition includes a set of clauses.
Definition Rule.h:28