Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
PrismExportSettings.cpp
Go to the documentation of this file.
2
8
9#include <boost/algorithm/string.hpp>
10
11namespace storm {
12namespace settings {
13namespace modules {
14const std::string PrismExportSettings::moduleName = "exportPrism";
15
16const std::string PrismExportSettings::exportFlattenOptionName = "flatten";
17const std::string PrismExportSettings::exportSimplifyOptionName = "simplify";
18
20 this->addOption(storm::settings::OptionBuilder(moduleName, exportFlattenOptionName, false,
21 "Flattens the composition of modules to obtain an equivalent program that contains exactly one module")
22 .build());
23 this->addOption(storm::settings::OptionBuilder(moduleName, exportSimplifyOptionName, false, "Applies static analysis to simplify the program.").build());
24}
25
27 return this->getOption(exportFlattenOptionName).getHasOptionBeenSet();
28}
29
31 return this->getOption(exportSimplifyOptionName).getHasOptionBeenSet();
32}
33
35
37 return true;
38}
39} // namespace modules
40} // namespace settings
41} // namespace storm
This class provides the interface to create an option...
bool getHasOptionBeenSet() const
Retrieves whether the option has been set.
Definition Option.cpp:125
ModuleSettings(std::string const &moduleName)
Constructs a new settings object.
void addOption(std::shared_ptr< Option > const &option)
Adds and registers the given option.
Option & getOption(std::string const &longName)
Retrieves the option with the given long name.
bool check() const override
Checks whether the settings are consistent.
PrismExportSettings()
Creates a new PrismExport setting.
void finalize() override
Prepares the modules for further usage, should be called at the end of the initialization,...