mCRL2
Loading...
Searching...
No Matches
mcrl2::lts::stochastic_lts_aut_builder Class Reference

#include <stochastic_lts_builder.h>

Inheritance diagram for mcrl2::lts::stochastic_lts_aut_builder:
mcrl2::lts::stochastic_lts_builder

Classes

struct  stochastic_state
 
struct  transition
 

Public Member Functions

 stochastic_lts_aut_builder ()=default
 
void set_initial_state (const std::list< std::size_t > &targets, const std::vector< data::data_expression > &probabilities) override
 
void add_transition (std::size_t from, const lps::multi_action &a, const std::list< std::size_t > &targets, const std::vector< data::data_expression > &probabilities, const std::size_t number_of_threads) override
 
void finalize (const indexed_set_for_states_type &state_map, bool) override
 
void save (std::ostream &out) const
 
void save (const std::string &filename) override
 
- Public Member Functions inherited from mcrl2::lts::stochastic_lts_builder
 stochastic_lts_builder ()
 
std::size_t add_action (const lps::multi_action &a)
 
virtual void set_initial_state (const std::list< std::size_t > &targets, const std::vector< data::data_expression > &probabilities)=0
 
virtual void add_transition (std::size_t from, const lps::multi_action &a, const std::list< std::size_t > &targets, const std::vector< data::data_expression > &probabilities, const std::size_t number_of_threads=1)=0
 
virtual void finalize (const indexed_set_for_states_type &state_map, bool timed)=0
 
virtual void save (const std::string &filename)=0
 
virtual ~stochastic_lts_builder ()=default
 

Protected Attributes

std::vector< stochastic_statem_stochastic_states
 
std::vector< transitionm_transitions
 
std::size_t m_number_of_states = 0
 
std::mutex m_exclusive_transition_access
 

Additional Inherited Members

- Public Types inherited from mcrl2::lts::stochastic_lts_builder
typedef atermpp::indexed_set< lps::state, mcrl2::utilities::detail::GlobalThreadSafeindexed_set_for_states_type
 
- Public Attributes inherited from mcrl2::lts::stochastic_lts_builder
utilities::unordered_map_large< lps::multi_action, std::size_t > m_actions
 

Detailed Description

Definition at line 75 of file stochastic_lts_builder.h.

Constructor & Destructor Documentation

◆ stochastic_lts_aut_builder()

mcrl2::lts::stochastic_lts_aut_builder::stochastic_lts_aut_builder ( )
default

Member Function Documentation

◆ add_transition()

void mcrl2::lts::stochastic_lts_aut_builder::add_transition ( std::size_t  from,
const lps::multi_action a,
const std::list< std::size_t > &  targets,
const std::vector< data::data_expression > &  probabilities,
const std::size_t  number_of_threads 
)
inlineoverridevirtual

Implements mcrl2::lts::stochastic_lts_builder.

Definition at line 134 of file stochastic_lts_builder.h.

◆ finalize()

void mcrl2::lts::stochastic_lts_aut_builder::finalize ( const indexed_set_for_states_type state_map,
bool   
)
inlineoverridevirtual

Implements mcrl2::lts::stochastic_lts_builder.

Definition at line 145 of file stochastic_lts_builder.h.

◆ save() [1/2]

void mcrl2::lts::stochastic_lts_aut_builder::save ( const std::string &  filename)
inlineoverridevirtual

Implements mcrl2::lts::stochastic_lts_builder.

Definition at line 171 of file stochastic_lts_builder.h.

◆ save() [2/2]

void mcrl2::lts::stochastic_lts_aut_builder::save ( std::ostream &  out) const
inline

Definition at line 150 of file stochastic_lts_builder.h.

◆ set_initial_state()

void mcrl2::lts::stochastic_lts_aut_builder::set_initial_state ( const std::list< std::size_t > &  targets,
const std::vector< data::data_expression > &  probabilities 
)
inlineoverridevirtual

Implements mcrl2::lts::stochastic_lts_builder.

Definition at line 128 of file stochastic_lts_builder.h.

Member Data Documentation

◆ m_exclusive_transition_access

std::mutex mcrl2::lts::stochastic_lts_aut_builder::m_exclusive_transition_access
protected

Definition at line 122 of file stochastic_lts_builder.h.

◆ m_number_of_states

std::size_t mcrl2::lts::stochastic_lts_aut_builder::m_number_of_states = 0
protected

Definition at line 121 of file stochastic_lts_builder.h.

◆ m_stochastic_states

std::vector<stochastic_state> mcrl2::lts::stochastic_lts_aut_builder::m_stochastic_states
protected

Definition at line 119 of file stochastic_lts_builder.h.

◆ m_transitions

std::vector<transition> mcrl2::lts::stochastic_lts_aut_builder::m_transitions
protected

Definition at line 120 of file stochastic_lts_builder.h.


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