QuISP
Loading...
Searching...
No Matches
quisp::runtime::Rule Class Reference

The Runtime executable Rule in a RuleSet. More...

#include <RuleSet.h>

Collaboration diagram for quisp::runtime::Rule:

Public Member Functions

 Rule (const Program &condition, const Program &action, bool debugging=false)
 
 Rule (const std::string &name, int send_tag, int receive_tag, const Program &condition, const Program &action, bool debugging=false)
 

Public Attributes

std::string name
 the RuleSet name for debugging
 
int id = -1
 the Rule id. The RuleSet::finalize() determines the id.
 
int send_tag = -1
 the shared tag for identify a rule across QNodes in a connection.
 
int receive_tag = -1
 
Program condition
 The condition for the Rule. The Runtime executes the following. action if this condition passed. If not, it goes the next Rule.
 
Program action
 The action for the Rule in the RuleSet.
 
bool debugging = false
 if it's true, the Runtime shows debug info in each step.
 

Detailed Description

The Runtime executable Rule in a RuleSet.

Constructor & Destructor Documentation

◆ Rule() [1/2]

quisp::runtime::Rule::Rule ( const Program & condition,
const Program & action,
bool debugging = false )
inline

◆ Rule() [2/2]

quisp::runtime::Rule::Rule ( const std::string & name,
int send_tag,
int receive_tag,
const Program & condition,
const Program & action,
bool debugging = false )
inline

Member Data Documentation

◆ action

Program quisp::runtime::Rule::action

The action for the Rule in the RuleSet.

◆ condition

Program quisp::runtime::Rule::condition

The condition for the Rule. The Runtime executes the following. action if this condition passed. If not, it goes the next Rule.

This condition describes when the Runtime should execute the action in this Rule.

◆ debugging

bool quisp::runtime::Rule::debugging = false

if it's true, the Runtime shows debug info in each step.

◆ id

int quisp::runtime::Rule::id = -1

the Rule id. The RuleSet::finalize() determines the id.

◆ name

std::string quisp::runtime::Rule::name

the RuleSet name for debugging

◆ receive_tag

int quisp::runtime::Rule::receive_tag = -1

◆ send_tag

int quisp::runtime::Rule::send_tag = -1

the shared tag for identify a rule across QNodes in a connection.


The documentation for this class was generated from the following file: