spot  1.0.2
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
spot::ltl::default_environment Class Reference

A laxist environment.This environment recognizes all atomic propositions. More...

#include <ltlenv/defaultenv.hh>

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

Public Member Functions

virtual ~default_environment ()
virtual const formularequire (const std::string &prop_str)
 Obtain the formula associated to prop_str.
virtual const std::string & name ()
 Get the name of the environment.

Static Public Member Functions

static default_environmentinstance ()
 Get the sole instance of spot::ltl::default_environment.

Protected Member Functions

 default_environment ()

Detailed Description

A laxist environment.

This environment recognizes all atomic propositions.

This is a singleton. Use default_environment::instance() to obtain the instance.

Constructor & Destructor Documentation

virtual spot::ltl::default_environment::~default_environment ( )
virtual
spot::ltl::default_environment::default_environment ( )
protected

Member Function Documentation

static default_environment& spot::ltl::default_environment::instance ( )
static

Get the sole instance of spot::ltl::default_environment.

virtual const std::string& spot::ltl::default_environment::name ( )
virtual

Get the name of the environment.

Implements spot::ltl::environment.

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

Implements spot::ltl::environment.


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

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed Mar 6 2013 09:25:17 for spot by doxygen 1.8.1.2