spot
1.99.4
|
Kripke Structure. More...
#include <kripke/kripkeexplicit.hh>
Public Member Functions | |
kripke_explicit (const bdd_dict_ptr &, state_kripke *=nullptr) | |
state_kripke * | get_init_state () const |
Get the initial state of the automaton. More... | |
kripke_explicit_succ_iterator * | succ_iter (const spot::state *state) const |
Allow to get an iterator on the state we passed in parameter. More... | |
bdd | state_condition (const state *s) const |
Get the condition on the state. More... | |
bdd | state_condition (const std::string &) const |
Get the condition on the state. More... | |
std::string | format_state (const state *) const |
Return the name of the state. More... | |
void | add_state (std::string) |
Create state, if it does not already exists. More... | |
void | add_transition (std::string source, std::string dest) |
Add a transition between two states. More... | |
void | add_conditions (bdd add, std::string on_me) |
Add a BDD condition to the state. More... | |
void | add_condition (formula f, std::string on_me) |
Add a formula to the state corresponding to the name. More... | |
const std::map< const state_kripke *, std::string > & | sn_get () const |
Return map between states and their names. More... | |
virtual acc_cond::mark_t | state_acceptance_conditions (const state *) const |
The set of acceptance conditions that label the state s. More... | |
Protected Member Functions | |
virtual bdd | compute_support_conditions (const state *s) const |
Protected Attributes | |
twa_succ_iterator * | iter_cache_ |
bdd_dict_ptr | dict_ |
Kripke Structure.
void spot::kripke_explicit::add_condition | ( | formula | f, |
std::string | on_me | ||
) |
Add a formula to the state corresponding to the name.
f | the formula to add. |
on_me | the state where to add. |
void spot::kripke_explicit::add_conditions | ( | bdd | add, |
std::string | on_me | ||
) |
Add a BDD condition to the state.
add | the condition. |
on_me | where add the condition. |
void spot::kripke_explicit::add_state | ( | std::string | ) |
Create state, if it does not already exists.
Used by the parser.
void spot::kripke_explicit::add_transition | ( | std::string | source, |
std::string | dest | ||
) |
Add a transition between two states.
std::string spot::kripke_explicit::format_state | ( | const state * | ) | const |
Return the name of the state.
|
virtual |
Get the initial state of the automaton.
The state has been allocated with new
. It is the responsability of the caller to destroy
it when no longer needed.
Implements spot::twa.
const std::map<const state_kripke*, std::string>& spot::kripke_explicit::sn_get | ( | ) | const |
Return map between states and their names.
|
virtualinherited |
The set of acceptance conditions that label the state s.
Implements spot::fair_kripke.
|
virtual |
Get the condition on the state.
Implements spot::fair_kripke.
bdd spot::kripke_explicit::state_condition | ( | const std::string & | ) | const |
Get the condition on the state.
|
virtual |
Allow to get an iterator on the state we passed in parameter.
Implements spot::twa.