13#ifndef MCRL2_LTS_DETAIL_SWAP_TO_FROM_PROBABILISTIC_LTS_H
14#define MCRL2_LTS_DETAIL_SWAP_TO_FROM_PROBABILISTIC_LTS_H
27template <
class STATE_LABEL_T,
class ACTION_LABEL_T,
class PROBABILISTIC_STATE_T,
class LTS_BASE >
40 throw mcrl2::runtime_error(
"Initial state is probabilistic and cannot be transformed into a non probabilistic state.");
44 std::size_t transition_number=1;
47 std::size_t probabilistic_target_state_number=t.to();
50 throw mcrl2::runtime_error(
"Transition " + std::to_string(transition_number) +
" is probabilistic.");
62template <
class STATE_LABEL_T,
class ACTION_LABEL_T,
class PROBABILISTIC_STATE_T,
class LTS_BASE >
69 for(std::size_t i=0; i<l_plain.num_states(); ++i)
A class that contains a labelled transition system.
A class that contains a labelled transition system.
void set_initial_probabilistic_state(const PROBABILISTIC_STATE_T &state)
Sets the probabilistic initial state number of this LTS.
const PROBABILISTIC_STATE_T & initial_probabilistic_state() const
Gets the initial state number of this LTS.
states_size_type add_probabilistic_state(const PROBABILISTIC_STATE_T &s)
Adds a probabilistic state to this LTS.
const PROBABILISTIC_STATE_T & probabilistic_state(const states_size_type index) const
Gets the probabilistic label of an index.
A class containing triples, source label and target representing transitions.
Standard exception class for reporting runtime errors.
Exception classes for use in libraries and tools.
void swap(abstraction &t1, abstraction &t2)
\brief swap overload
void translate_to_probabilistic_lts(const lts< STATE_LABEL_T, ACTION_LABEL_T, LTS_BASE > &l_plain, probabilistic_lts< STATE_LABEL_T, ACTION_LABEL_T, PROBABILISTIC_STATE_T, LTS_BASE > &l_probabilistic)
void swap_to_non_probabilistic_lts(probabilistic_lts< STATE_LABEL_T, ACTION_LABEL_T, PROBABILISTIC_STATE_T, LTS_BASE > &l_probabilistic, lts< STATE_LABEL_T, ACTION_LABEL_T, LTS_BASE > &l_plain)
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
The file containing the core class for transition systems.