19#ifndef MCRL2_LTS_LTS_FSM_H
20#define MCRL2_LTS_LTS_FSM_H
54 std::vector <
std::size_t >(v)
74 for(
const std::size_t& l:
label)
76 s += std::to_string(l) +
" ";
98 std::vector < std::pair < std::string, std::string > >
m_parameters;
154 for (std::size_t i=0; i<l.size(); ++i)
193 return std::to_string(element_index);
232 m_parameters.push_back(std::pair<std::string,std::string>(name,sort));
247class lts_fsm_t :
public lts< state_label_fsm, action_label_string, detail::lts_fsm_base >
256 void load(
const std::string& filename);
262 void save(
const std::string& filename)
const;
274 probabilistic_state< std::size_t, mcrl2::utilities::probabilistic_arbitrary_precision_fraction >,
275 detail::lts_fsm_base >
285 void load(
const std::string& filename);
291 void save(
const std::string& filename)
const;
This file contains a class that contains labelled transition systems in aut format.
void clear()
Clear the transitions system.
const std::vector< std::string > & state_element_values(std::size_t idx) const
Provides the vector of strings that correspond to the values of the number at position idx in a vecto...
std::size_t add_state_element_value(std::size_t idx, const std::string &s)
Adds a string to the state element values for the idx-th position in a state vector....
bool operator==(const lts_fsm_base &other) const
void clear_process_parameters()
Clear the state parameters for this LTS.
mcrl2::lts::probabilistic_state< std::size_t, mcrl2::utilities::probabilistic_arbitrary_precision_fraction > probabilistic_state
std::vector< std::vector< std::string > > m_state_element_values
state_element_values contain the values that can occur at the i-th position of a state label
lts_type type() const
The lts_type of this labelled transition system. In this case lts_fsm.
mcrl2::lps::state_probability_pair< std::size_t, mcrl2::utilities::probabilistic_arbitrary_precision_fraction > state_probability_pair
std::string state_element_value(std::size_t parameter_index, std::size_t element_index) const
Returns the element_index'th element for the parameter with index parameter_index.
std::pair< std::string, std::string > process_parameter(std::size_t i) const
Returns the i-th parameter of the state vectors stored in this LTS.
std::vector< std::pair< std::string, std::string > > m_parameters
m_parameters contain the parameters corresponding to the consecutive elements of a state vector....
std::vector< std::pair< std::string, std::string > > process_parameters() const
Return the parameters of the state vectors stored in this LTS.
void add_process_parameter(const std::string &name, const std::string &sort)
Set the state parameters for this LTS.
std::string state_label_to_string(const state_label_fsm &l) const
Pretty print a state value of this FSM.
void swap(lts_fsm_base &other)
Standard swap function.
The class lts_fsm_t contains labelled transition systems in .fsm format.
lts< state_label_fsm, action_label_string, detail::lts_fsm_base > super
void load(const std::string &filename)
Save the labelled transition system to file.
void save(const std::string &filename) const
Save the labelled transition system to file.
A class that contains a labelled transition system.
The class lts_fsm_t contains labelled transition systems in .fsm format.
probabilistic_lts< state_label_fsm, action_label_string, probabilistic_state_t, detail::lts_fsm_base > super
void save(const std::string &filename) const
Save the labelled transition system to file.
void load(const std::string &filename)
Save the labelled transition system to file.
A class that contains a labelled transition system.
A class that contains a probabilistic state.
This class contains state labels for the fsm format.
state_label_fsm(const state_label_fsm &)=default
Copy constructor.
state_label_fsm & operator=(const state_label_fsm &)=default
Copy assignment.
state_label_fsm()
Default constructor. The label becomes an empty vector.
state_label_fsm(const std::vector< std::size_t > &v)
Default constructor. The label is set to the vector v.
state_label_fsm operator+(const state_label_fsm &l) const
An operator to concatenate two state labels. Fsm labels cannot be concatenated. Therefore,...
std::string pp(const abstraction &x)
lts_type
The enumerated type lts_type contains an index for every type type of labelled transition system that...
std::size_t label(const outgoing_pair_t &p)
Label of a pair of a label and target state.
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
This file contains a class that contains labels for probabilistic transitions. These consist of a 64 ...
The file containing the core class for transition systems.