spot  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
spot::ltl::declarative_environment Class Reference

A declarative environment. More...

#include <ltlenv/declenv.hh>

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

Public Types

typedef std::map< const
std::string, const atomic_prop * > 
prop_map
 

Public Member Functions

bool declare (const std::string &prop_str)
 
virtual const formularequire (const std::string &prop_str)
 Obtain the formula associated to prop_str. More...
 
virtual const std::string & name ()
 Get the name of the environment. More...
 
const prop_map & get_prop_map () const
 Get the map of atomic proposition known to this environment. More...
 

Detailed Description

A declarative environment.

This environment recognizes all atomic propositions that have been previously declared. It will reject other.

Member Function Documentation

bool spot::ltl::declarative_environment::declare ( const std::string &  prop_str)

Declare an atomic proposition. Return false iff the proposition was already declared.

const prop_map& spot::ltl::declarative_environment::get_prop_map ( ) const

Get the map of atomic proposition known to this environment.

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

Get the name of the environment.

Implements spot::ltl::environment.

virtual const formula* spot::ltl::declarative_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 direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Thu May 15 2014 11:04:12 for spot by doxygen 1.8.4