FDR  4.2.7(6ecbe5a21b71ab020e8fcaeccfe5ebaad0599f4f)
loop_behaviour.h
1 #pragma once
2 
3 #include <fdr/assertions/behaviour/behaviour.h>
4 
5 namespace FDR
6 {
7 namespace Assertions
8 {
12 class LoopBehaviour : public Behaviour
13 {
14 public:
15  LoopBehaviour(const std::shared_ptr<LTS::Machine>& machine,
16  const std::vector<std::shared_ptr<LTS::Node>>& node_path,
17  const std::vector<LTS::CompiledEvent>& trace, const unsigned int loop_index);
18 
23  unsigned int loop_index() const;
24 
25 private:
26  const unsigned int loop_index_;
27 };
28 
29 } // end Assertions
30 } // end FDR
FDR::Assertions::LoopBehaviour
A behaviour that performs some trace, and then repeats a suffix.
Definition: loop_behaviour.h:13
FDR::Assertions::LoopBehaviour::loop_index
unsigned int loop_index() const
The index at which the trace repeats.
FDR::Assertions::Behaviour::node_path
const std::vector< std::shared_ptr< LTS::Node > > & node_path() const
The sequence of nodes leading to the behaviour.
FDR::Assertions::Behaviour::trace
const std::vector< LTS::CompiledEvent > & trace() const
Returns the sequence of events that led to this behaviour.
FDR::Assertions::Behaviour
A particular path through a Machine, often leading to an interesting state.
Definition: behaviour.h:22
FDR::Assertions::Behaviour::machine
std::shared_ptr< LTS::Machine > machine() const
The machine in which the behaviour occurs.