16template<
typename ValueType,
typename RewardValueType>
19 std::string
const& stateRewardFilename, std::string
const& transitionRewardFilename,
20 std::string
const& choiceLabelingFilename) {
34 std::move(resultLabeling));
40 std::optional<std::vector<RewardValueType>> stateRewards;
42 if (!stateRewardFilename.empty()) {
48 std::optional<storm::storage::SparseMatrix<RewardValueType>> transitionRewards;
49 if (!transitionRewardFilename.empty()) {
54 if (stateRewards || transitionRewards) {
60 std::optional<storm::models::sparse::ChoiceLabeling> choiceLabeling;
61 if (!choiceLabelingFilename.empty()) {
This class represents a Markov automaton.
This class manages the labeling of the state space with a number of (atomic) labels.
Loads a labeled Markov automaton from files.
static storm::models::sparse::MarkovAutomaton< ValueType, storm::models::sparse::StandardRewardModel< RewardValueType > > parseMarkovAutomaton(std::string const &transitionsFilename, std::string const &labelingFilename, std::string const &stateRewardFilename="", std::string const &transitionRewardFilename="", std::string const &choiceLabelingFilename="")
Parses the given Markov automaton and returns an object representing the automaton.
A class providing the functionality to parse the transitions of a Markov automaton.
A class providing the functionality to parse the transitions of a nondeterministic model.
static storm::models::sparse::ChoiceLabeling parseChoiceLabeling(uint_fast64_t choiceCount, std::string const &filename, boost::optional< std::vector< uint_fast64_t > > const &nondeterministicChoiceIndices=boost::none)
Parses the given file and returns the resulting choice labeling.
static storm::models::sparse::StateLabeling parseAtomicPropositionLabeling(uint_fast64_t stateCount, std::string const &filename)
Parses the given file and returns the resulting state labeling.
A class providing the functionality to parse a the state rewards of a model.
A class that holds a possibly non-square matrix in the compressed row storage format.
index_type getColumnCount() const
Returns the number of columns of the matrix.
A structure representing the result of the parser.
storm::storage::BitVector markovianStates
A bit vector indicating which states possess a Markovian choice.
std::vector< ValueType > exitRates
A vector that stores the exit rates for each state. For all states that do not possess Markovian choi...
storm::storage::SparseMatrixBuilder< ValueType > transitionMatrixBuilder
A matrix representing the transitions of the model.
std::unordered_map< std::string, RewardModelType > rewardModels
storm::storage::SparseMatrix< ValueType > transitionMatrix
boost::optional< storm::storage::BitVector > markovianStates
std::optional< storm::models::sparse::ChoiceLabeling > choiceLabeling
boost::optional< std::vector< ValueType > > exitRates