|
@ -25,6 +25,7 @@ namespace storm { |
|
|
const std::string DftIOSettings::minValueOptionName = "min"; |
|
|
const std::string DftIOSettings::minValueOptionName = "min"; |
|
|
const std::string DftIOSettings::maxValueOptionName = "max"; |
|
|
const std::string DftIOSettings::maxValueOptionName = "max"; |
|
|
const std::string DftIOSettings::exportToJsonOptionName = "export-json"; |
|
|
const std::string DftIOSettings::exportToJsonOptionName = "export-json"; |
|
|
|
|
|
const std::string DftIOSettings::exportToSmtOptionName = "export-smt"; |
|
|
const std::string DftIOSettings::displayStatsOptionName = "show-dft-stats"; |
|
|
const std::string DftIOSettings::displayStatsOptionName = "show-dft-stats"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -56,6 +57,11 @@ namespace storm { |
|
|
this->addOption(storm::settings::OptionBuilder(moduleName, exportToJsonOptionName, false, "Export the model to the Cytoscape JSON format.") |
|
|
this->addOption(storm::settings::OptionBuilder(moduleName, exportToJsonOptionName, false, "Export the model to the Cytoscape JSON format.") |
|
|
.addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "The name of the JSON file to export to.").build()) |
|
|
.addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "The name of the JSON file to export to.").build()) |
|
|
.build()); |
|
|
.build()); |
|
|
|
|
|
this->addOption(storm::settings::OptionBuilder(moduleName, exportToSmtOptionName, false, |
|
|
|
|
|
"Export the model as SMT encoding to the smtlib2 format.") |
|
|
|
|
|
.addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", |
|
|
|
|
|
"The name of the smtlib2 file to export to.").build()) |
|
|
|
|
|
.build()); |
|
|
this->addOption(storm::settings::OptionBuilder(moduleName, displayStatsOptionName, false, "Print stats to stdout").build()); |
|
|
this->addOption(storm::settings::OptionBuilder(moduleName, displayStatsOptionName, false, "Print stats to stdout").build()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -122,6 +128,14 @@ namespace storm { |
|
|
return this->getOption(exportToJsonOptionName).getArgumentByName("filename").getValueAsString(); |
|
|
return this->getOption(exportToJsonOptionName).getArgumentByName("filename").getValueAsString(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool DftIOSettings::isExportToSmt() const { |
|
|
|
|
|
return this->getOption(exportToSmtOptionName).getHasOptionBeenSet(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
std::string DftIOSettings::getExportSmtFilename() const { |
|
|
|
|
|
return this->getOption(exportToSmtOptionName).getArgumentByName("filename").getValueAsString(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
bool DftIOSettings::isDisplayStatsSet() const { |
|
|
bool DftIOSettings::isDisplayStatsSet() const { |
|
|
return this->getOption(displayStatsOptionName).getHasOptionBeenSet(); |
|
|
return this->getOption(displayStatsOptionName).getHasOptionBeenSet(); |
|
|
} |
|
|
} |
|
|