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 {