From fa204dc58426e885a63eb4cb5d3071c6b4142172 Mon Sep 17 00:00:00 2001 From: sjunges Date: Tue, 20 Dec 2016 00:20:54 +0100 Subject: [PATCH] gspn working again --- src/storm-gspn-cli/storm-gspn.cpp | 10 ++++------ src/storm-gspn/storm-gspn.h | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/storm-gspn-cli/storm-gspn.cpp b/src/storm-gspn-cli/storm-gspn.cpp index 17b45222d..4caa46485 100644 --- a/src/storm-gspn-cli/storm-gspn.cpp +++ b/src/storm-gspn-cli/storm-gspn.cpp @@ -3,6 +3,7 @@ #include "storm-gspn/storage/gspn/GSPN.h" #include "storm-gspn/storage/gspn/GspnBuilder.h" #include "storm-gspn/builder/JaniGSPNBuilder.h" +#include "storm-gspn/storm-gspn.h" #include "storm/exceptions/BaseException.h" #include "storm/exceptions/WrongFormatException.h" @@ -65,11 +66,6 @@ std::unordered_map parseCapacitiesList(std::string const& } -void handleJani(storm::gspn::GSPN const& gspn) { - - storm::jani::JsonExporter::toFile(*model, {}, storm::settings::getModule().getJaniFilename()); - delete model; -} int main(const int argc, const char **argv) { try { @@ -107,7 +103,9 @@ int main(const int argc, const char **argv) { } if(storm::settings::getModule().isJaniFileSet()) { - handleJani(*gspn); + storm::jani::Model* model = storm::buildJani(*gspn); + storm::exportJaniModel(*model, {}, storm::settings::getModule().getJaniFilename()); + delete model; } diff --git a/src/storm-gspn/storm-gspn.h b/src/storm-gspn/storm-gspn.h index 63b0746f1..095b82aca 100644 --- a/src/storm-gspn/storm-gspn.h +++ b/src/storm-gspn/storm-gspn.h @@ -5,6 +5,7 @@ #include "storm-gspn/builder/JaniGSPNBuilder.h" #include "storm-gspn/storage/gspn/GSPN.h" +#include "storm/settings/SettingsManager.h" #include "storm/settings/modules/GSPNExportSettings.h" namespace storm {