mCRL2
Loading...
Searching...
No Matches
is_timed.h
Go to the documentation of this file.
1// Author(s): Wieger Wesselink
2// Copyright: see the accompanying file COPYING or copy at
3// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8//
11
12#ifndef MCRL2_MODAL_FORMULA_IS_TIMED_H
13#define MCRL2_MODAL_FORMULA_IS_TIMED_H
14
16
17namespace mcrl2 {
18
19namespace state_formulas {
20
21namespace detail {
22
24// \brief Visitor for checking if a state formula is timed.
25struct is_timed_traverser: public state_formula_traverser<is_timed_traverser>
26{
28 using super::enter;
29 using super::leave;
30 using super::apply;
31
32 bool result;
33
35 : result(false)
36 {}
37
38 void enter(const delay_timed& /* x */)
39 {
40 result = true;
41 }
42
43 void enter(const yaled_timed& /* x */)
44 {
45 result = true;
46 }
47
48 void enter(const action_formulas::at& /* x */)
49 {
50 result = true;
51 }
52};
53
54} // namespace detail
55
59inline
60bool is_timed(const state_formula& x)
61{
63 f.apply(x);
64 return f.result;
65}
66
67} // namespace state_formulas
68
69} // namespace mcrl2
70
71#endif // MCRL2_MODAL_FORMULA_IS_TIMED_H
\brief The at operator for action formulas
\brief The timed delay operator for state formulas
\brief The timed yaled operator for state formulas
add your file description here.
bool is_timed(const state_formula &x)
Checks if a state formula is timed.
Definition is_timed.h:60
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition indexed_set.h:72
Function that determines if a state formula is time dependent.
Definition is_timed.h:26
void enter(const action_formulas::at &)
Definition is_timed.h:48
state_formula_traverser< is_timed_traverser > super
Definition is_timed.h:27