FDR  4.2.7(6ecbe5a21b71ab020e8fcaeccfe5ebaad0599f4f)
trace_behaviour.h
1 #pragma once
2 
3 #include <fdr/assertions/behaviour/behaviour.h>
4 
5 namespace FDR
6 {
7 namespace Assertions
8 {
13 class TraceBehaviour : public Behaviour
14 {
15 public:
16  TraceBehaviour(const std::shared_ptr<LTS::Machine>& machine,
17  const std::vector<std::shared_ptr<LTS::Node>>& node_path,
18  const std::vector<LTS::CompiledEvent>& trace, const LTS::CompiledEvent error_event);
19 
24  LTS::CompiledEvent error_event() const;
25 
26 private:
27  const LTS::CompiledEvent error_event_;
28 };
29 
30 } // end Assertions
31 } // end FDR
FDR::Assertions::TraceBehaviour::error_event
LTS::CompiledEvent error_event() const
The event considered to be disallowed.
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::TraceBehaviour
A Behaviour that indicates the machine performed a prohibited event.
Definition: trace_behaviour.h:14
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.