Browse Source

gspn working again

tempestpy_adaptions
sjunges 8 years ago
parent
commit
fa204dc584
  1. 10
      src/storm-gspn-cli/storm-gspn.cpp
  2. 1
      src/storm-gspn/storm-gspn.h

10
src/storm-gspn-cli/storm-gspn.cpp

@ -3,6 +3,7 @@
#include "storm-gspn/storage/gspn/GSPN.h" #include "storm-gspn/storage/gspn/GSPN.h"
#include "storm-gspn/storage/gspn/GspnBuilder.h" #include "storm-gspn/storage/gspn/GspnBuilder.h"
#include "storm-gspn/builder/JaniGSPNBuilder.h" #include "storm-gspn/builder/JaniGSPNBuilder.h"
#include "storm-gspn/storm-gspn.h"
#include "storm/exceptions/BaseException.h" #include "storm/exceptions/BaseException.h"
#include "storm/exceptions/WrongFormatException.h" #include "storm/exceptions/WrongFormatException.h"
@ -65,11 +66,6 @@ std::unordered_map<std::string, uint64_t> parseCapacitiesList(std::string const&
} }
void handleJani(storm::gspn::GSPN const& gspn) {
storm::jani::JsonExporter::toFile(*model, {}, storm::settings::getModule<storm::settings::modules::JaniExportSettings>().getJaniFilename());
delete model;
}
int main(const int argc, const char **argv) { int main(const int argc, const char **argv) {
try { try {
@ -107,7 +103,9 @@ int main(const int argc, const char **argv) {
} }
if(storm::settings::getModule<storm::settings::modules::JaniExportSettings>().isJaniFileSet()) { if(storm::settings::getModule<storm::settings::modules::JaniExportSettings>().isJaniFileSet()) {
handleJani(*gspn);
storm::jani::Model* model = storm::buildJani(*gspn);
storm::exportJaniModel(*model, {}, storm::settings::getModule<storm::settings::modules::JaniExportSettings>().getJaniFilename());
delete model;
} }

1
src/storm-gspn/storm-gspn.h

@ -5,6 +5,7 @@
#include "storm-gspn/builder/JaniGSPNBuilder.h" #include "storm-gspn/builder/JaniGSPNBuilder.h"
#include "storm-gspn/storage/gspn/GSPN.h" #include "storm-gspn/storage/gspn/GSPN.h"
#include "storm/settings/SettingsManager.h"
#include "storm/settings/modules/GSPNExportSettings.h" #include "storm/settings/modules/GSPNExportSettings.h"
namespace storm { namespace storm {

Loading…
Cancel
Save