diff --git a/src/models/AbstractModel.h b/src/models/AbstractModel.h index 30f8e221c..fd01131c3 100644 --- a/src/models/AbstractModel.h +++ b/src/models/AbstractModel.h @@ -459,7 +459,7 @@ class AbstractModel: public std::enable_shared_from_this> { * @return void */ virtual void setStateIdBasedChoiceLabeling() = 0; -protected: + /*! * Exports the model to the dot-format and prints the result to the given stream. * @@ -535,7 +535,8 @@ protected: outStream << "}" << std::endl; } } - + +protected: /*! A matrix representing the likelihoods of moving between states. */ storm::storage::SparseMatrix transitionMatrix; diff --git a/src/parser/MarkovAutomatonSparseTransitionParser.cpp b/src/parser/MarkovAutomatonSparseTransitionParser.cpp index 912524ee5..9818e3aa0 100644 --- a/src/parser/MarkovAutomatonSparseTransitionParser.cpp +++ b/src/parser/MarkovAutomatonSparseTransitionParser.cpp @@ -245,7 +245,7 @@ namespace storm { // Record the value as well as the exit rate in case of a Markovian choice. result.transitionMatrix.addNextValue(currentChoice, target, val); if (isMarkovianChoice) { - result.exitRates[currentChoice] += val; + result.exitRates[source] += val; } buf = forwardToNextLine(buf, lineEndings); diff --git a/src/storm.cpp b/src/storm.cpp index 7c5e18376..a0d8006c9 100644 --- a/src/storm.cpp +++ b/src/storm.cpp @@ -430,27 +430,7 @@ int main(const int argc, const char* argv[]) { if (s->isSet("exportdot")) { std::ofstream outputFileStream; outputFileStream.open(s->getOptionByLongName("exportdot").getArgument(0).getValueAsString(), std::ofstream::out); - switch (parser.getType()) { - case storm::models::DTMC: - parser.getModel>()->writeDotToStream(outputFileStream); - break; - case storm::models::CTMC: - parser.getModel>()->writeDotToStream(outputFileStream); - break; - case storm::models::MDP: - parser.getModel>()->writeDotToStream(outputFileStream); - break; - case storm::models::CTMDP: - parser.getModel>()->writeDotToStream(outputFileStream); - break; - case storm::models::MA: - parser.getModel>()->writeDotToStream(outputFileStream); - break; - default: - LOG4CPLUS_ERROR(logger, "Illegal model type."); - break; - } - + parser.getModel>()->writeDotToStream(outputFileStream); outputFileStream.close(); }