spot
1.2.4
|
An environment that describes atomic propositions. More...
#include <ltlenv/environment.hh>
Public Member Functions | |
virtual const formula * | require (const std::string &prop_str)=0 |
Obtain the formula associated to prop_str. More... | |
virtual const std::string & | name ()=0 |
Get the name of the environment. More... | |
An environment that describes atomic propositions.
|
pure virtual |
Get the name of the environment.
Implemented in spot::ltl::declarative_environment, and spot::ltl::default_environment.
|
pure virtual |
Obtain the formula associated to prop_str.
Usually prop_str, is the name of an atomic proposition, and spot::ltl::require simply returns the associated spot::ltl::atomic_prop.
Note this is not a const
method. Some environments will "create" the atomic proposition when requested.
We return a spot::ltl::formula instead of an spot::ltl::atomic_prop, because this will allow nifty tricks (e.g., we could name formulae in an environment, and let the parser build a larger tree from these).
Implemented in spot::ltl::declarative_environment, and spot::ltl::default_environment.