Browse Source

setting jani conversion options from settings

main
TimQu 7 years ago
parent
commit
30d30a063c
  1. 4
      src/storm-conv-cli/storm-conv.cpp
  2. 4
      src/storm-conv/converter/options/JaniConversionOptions.cpp
  3. 2
      src/storm-conv/converter/options/JaniConversionOptions.h

4
src/storm-conv-cli/storm-conv.cpp

@ -48,9 +48,7 @@ namespace storm {
storm::converter::PrismToJaniConverterOptions options; storm::converter::PrismToJaniConverterOptions options;
options.allVariablesGlobal = true; options.allVariablesGlobal = true;
options.suffix = ""; options.suffix = "";
options.janiOptions.standardCompliant = jani.isExportAsStandardJaniSet();
options.janiOptions.locationVariables = jani.getLocationVariables();
options.janiOptions.exportFlattened = jani.isExportFlattenedSet();
options.janiOptions = storm::converter::JaniConversionOptions(jani);
auto janiModelProperties = storm::api::convertPrismToJani(prismProg, properties, options); auto janiModelProperties = storm::api::convertPrismToJani(prismProg, properties, options);
std::string outputFilename = ""; std::string outputFilename = "";

4
src/storm-conv/converter/options/JaniConversionOptions.cpp

@ -6,6 +6,10 @@ namespace storm {
JaniConversionOptions::JaniConversionOptions() : standardCompliant(false), exportFlattened(false) { JaniConversionOptions::JaniConversionOptions() : standardCompliant(false), exportFlattened(false) {
// Intentionally left empty // Intentionally left empty
}; };
JaniConversionOptions::JaniConversionOptions(storm::settings::modules::JaniExportSettings const& settings) : locationVariables(settings.getLocationVariables()), standardCompliant(settings.isExportAsStandardJaniSet()), exportFlattened(settings.isExportFlattenedSet()) {
// Intentionally left empty
};
} }
} }

2
src/storm-conv/converter/options/JaniConversionOptions.h

@ -2,6 +2,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "storm-conv/settings/modules/JaniExportSettings.h"
namespace storm { namespace storm {
namespace converter { namespace converter {
@ -9,6 +10,7 @@ namespace storm {
struct JaniConversionOptions { struct JaniConversionOptions {
JaniConversionOptions(); JaniConversionOptions();
JaniConversionOptions(storm::settings::modules::JaniExportSettings const& settings);
/// (Automaton,Variable)-pairs that will be transformed to location variables of the respective automaton. /// (Automaton,Variable)-pairs that will be transformed to location variables of the respective automaton.
std::vector<std::pair<std::string, std::string>> locationVariables; std::vector<std::pair<std::string, std::string>> locationVariables;

Loading…
Cancel
Save