Browse Source

Added pgcl to jani option in the settings

Former-commit-id: df76e91322 [formerly 334d45e88c]
Former-commit-id: eede3e3d43
tempestpy_adaptions
sjunges 8 years ago
parent
commit
5485abe1ef
  1. 7
      src/settings/modules/PGCLSettings.cpp
  2. 7
      src/settings/modules/PGCLSettings.h

7
src/settings/modules/PGCLSettings.cpp

@ -16,9 +16,12 @@ namespace storm {
const std::string PGCLSettings::pgclFileOptionName = "pgclfile";
const std::string PGCLSettings::pgclFileOptionShortName = "pgcl";
const std::string PGCLSettings::pgclToJaniOptionName = "to-jani";
const std::string PGCLSettings::pgclToJaniOptionShortName = "tj";
PGCLSettings::PGCLSettings() : ModuleSettings(moduleName) {
this->addOption(storm::settings::OptionBuilder(moduleName, pgclFileOptionName, false, "Parses the pgcl program.").setShortName(pgclFileOptionShortName).addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "path to file").addValidationFunctionString(storm::settings::ArgumentValidators::existingReadableFileValidator()).build()).build());
this->addOption(storm::settings::OptionBuilder(moduleName, pgclToJaniOptionName, false, "Transform to JANI.").setShortName(pgclToJaniOptionShortName).build());
}
bool PGCLSettings::isPgclFileSet() const {
@ -29,6 +32,10 @@ namespace storm {
return this->getOption(pgclFileOptionName).getArgumentByName("filename").getValueAsString();
}
bool PGCLSettings::isToJaniSet() const {
return this->getOption(pgclToJaniOptionName).getHasOptionBeenSet();
}
void PGCLSettings::finalize() {
}

7
src/settings/modules/PGCLSettings.h

@ -24,6 +24,11 @@ namespace storm {
*/
std::string getPgclFilename() const;
/**
*
*/
bool isToJaniSet() const;
bool check() const override;
void finalize() override;
@ -32,6 +37,8 @@ namespace storm {
private:
static const std::string pgclFileOptionName;
static const std::string pgclFileOptionShortName;
static const std::string pgclToJaniOptionName;
static const std::string pgclToJaniOptionShortName;
};
}

Loading…
Cancel
Save