spot  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
spot::ltl::environment Class Referenceabstract

An environment that describes atomic propositions. More...

#include <ltlenv/environment.hh>

Inheritance diagram for spot::ltl::environment:
Inheritance graph
Collaboration diagram for spot::ltl::environment:
Collaboration graph

Public Member Functions

virtual const formularequire (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...
 

Detailed Description

An environment that describes atomic propositions.

Member Function Documentation

virtual const std::string& spot::ltl::environment::name ( )
pure virtual

Get the name of the environment.

Implemented in spot::ltl::declarative_environment, and spot::ltl::default_environment.

virtual const formula* spot::ltl::environment::require ( const std::string &  prop_str)
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).

Returns
0 iff prop_str is not part of the environment, or the associated spot::ltl::formula otherwise.

Implemented in spot::ltl::declarative_environment, and spot::ltl::default_environment.


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

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Sat Dec 6 2014 12:28:45 for spot by doxygen 1.8.4