1#ifndef STORM_PARSER_MARKOVAUTOMATONSPARSETRANSITIONPARSER_H_
2#define STORM_PARSER_MARKOVAUTOMATONSPARSETRANSITIONPARSER_H_
17template<
typename ValueType =
double>
54 :
transitionMatrixBuilder(firstPassResult.numberOfChoices, firstPassResult.highestStateIndex + 1, firstPassResult.numberOfNonzeroEntries, true,
55 firstPassResult.highestStateIndex + 1),
58 exitRates(firstPassResult.highestStateIndex + 1) {
A class providing the functionality to parse the transitions of a Markov automaton.
static Result parseMarkovAutomatonTransitions(std::string const &filename)
Parses the given file under the assumption that it contains a Markov automaton specified in the appro...
A bit vector that is internally represented as a vector of 64-bit values.
A class that can be used to build a sparse matrix by adding value by value.
A structure representing the result of the first pass of this parser.
FirstPassResult()
The default constructor.
uint_fast64_t highestStateIndex
The highest state index that appears in the model.
uint_fast64_t numberOfNonzeroEntries
The total number of non-zero entries of the model.
uint_fast64_t numberOfChoices
The total number of nondeterministic choices in the model.
A structure representing the result of the parser.
storm::storage::BitVector markovianChoices
A bit vector indicating which choices are Markovian. By duality, all other choices are probabilitic.
storm::storage::BitVector markovianStates
A bit vector indicating which states possess a Markovian choice.
Result(FirstPassResult const &firstPassResult)
Creates a new instance of the struct using the result of the first pass to correctly initialize the c...
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.