14template<
typename ValueType,
typename RewardModelType>
21template<
typename ValueType,
typename RewardModelType>
28template<
typename ValueType,
typename RewardModelType>
31 std::vector<ValueType>
const* secondValue,
32 std::vector<uint_fast64_t>
const* stateColoring, std::vector<std::string>
const* colors,
33 std::vector<uint_fast64_t>* scheduler,
bool finalizeOutput)
const {
41 std::string arrowOrigin = std::to_string(i);
43 arrowOrigin =
"\"" + arrowOrigin +
"c\"";
44 outStream <<
"\t" << arrowOrigin <<
" [shape = \"point\"]\n";
45 outStream <<
"\t" << i <<
" -> " << arrowOrigin <<
" [label= \"{";
47 outStream <<
"}\"];\n";
51 for (
auto const& transition : row) {
53 if (subsystem ==
nullptr || subsystem->
get(transition.getColumn())) {
54 outStream <<
"\t" << arrowOrigin <<
" -> " << transition.getColumn() <<
" [ label= \"" << transition.getValue() <<
"\" ];\n";
The base class of all sparse deterministic models.
DeterministicModel(ModelType modelType, storm::storage::sparse::ModelComponents< ValueType, RewardModelType > const &components)
Constructs a model from the given data.
virtual void writeDotToStream(std::ostream &outStream, size_t maxWidthLabel=30, bool includeLabeling=true, storm::storage::BitVector const *subsystem=nullptr, std::vector< ValueType > const *firstValue=nullptr, std::vector< ValueType > const *secondValue=nullptr, std::vector< uint_fast64_t > const *stateColoring=nullptr, std::vector< std::string > const *colors=nullptr, std::vector< uint_fast64_t > *scheduler=nullptr, bool finalizeOutput=true) const override
storm::models::sparse::ChoiceLabeling const & getChoiceLabeling() const
storm::storage::SparseMatrix< ValueType > const & getTransitionMatrix() const
Model(Model< ValueType, RewardModelType > const &other)=default
bool hasChoiceLabeling() const
CRewardModelType RewardModelType
virtual void writeDotToStream(std::ostream &outStream, size_t maxWidthLabel=30, bool includeLabeling=true, storm::storage::BitVector const *subsystem=nullptr, std::vector< ValueType > const *firstValue=nullptr, std::vector< ValueType > const *secondValue=nullptr, std::vector< uint64_t > const *stateColoring=nullptr, std::vector< std::string > const *colors=nullptr, std::vector< uint_fast64_t > *scheduler=nullptr, bool finalizeOutput=true) const
Exports the model to the dot-format and prints the result to the given stream.
A bit vector that is internally represented as a vector of 64-bit values.
bool get(uint64_t index) const
Retrieves the truth value of the bit at the given index and performs a bound check.
This class represents a number of consecutive rows of the matrix.
void outputFixedWidth(std::ostream &stream, Container const &output, size_t maxWidth=30)
Output list of strings with linebreaks according to fixed width.