Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ToParametricSettings.cpp
Go to the documentation of this file.
2
8
10
11namespace storm {
12namespace settings {
13namespace modules {
14
15const std::string ToParametricSettings::moduleName = "toparametric";
16const std::string mecReductionOption = "mecreduction";
17const std::string selfloopReductionOption = "selfloopreduction";
18const std::string fscmode = "fscmode";
19std::vector<std::string> fscModes = {"standard", "simple-linear", "simple-linear-inverse"};
20const std::string transformBinaryOption = "transformbinary";
21const std::string transformSimpleOption = "transformsimple";
22const std::string allowSimplificationOption = "simplify-pmc";
23
25 this->addOption(
26 storm::settings::OptionBuilder(moduleName, mecReductionOption, false, "Reduces the model size by analyzing maximal end components").build());
27 this->addOption(storm::settings::OptionBuilder(moduleName, fscmode, false, "Sets the way the pMC is obtained")
28 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("type", "type name")
30 .setDefaultValueString("standard")
31 .build())
32 .build());
33 this->addOption(storm::settings::OptionBuilder(moduleName, transformBinaryOption, false, "Transforms the pomdp to a binary pomdp.").build());
34 this->addOption(storm::settings::OptionBuilder(moduleName, transformSimpleOption, false, "Transforms the pomdp to a binary and simple pomdp.").build());
35 this->addOption(
36 storm::settings::OptionBuilder(moduleName, allowSimplificationOption, false, "After obtaining a pMC, should further simplifications be applied?.")
37 .build());
38}
39
41 return this->getOption(mecReductionOption).getHasOptionBeenSet();
42}
43
45 return this->getOption(fscmode).getArgumentByName("type").getValueAsString();
46}
47
49 return this->getOption(transformBinaryOption).getHasOptionBeenSet();
50}
51
53 return this->getOption(transformSimpleOption).getHasOptionBeenSet();
54}
55
57 return this->getOption(allowSimplificationOption).getHasOptionBeenSet();
58}
59
61
63 return true;
64}
65
66} // namespace modules
67} // namespace settings
68} // namespace storm
virtual std::string getValueAsString() const =0
Retrieves the value of this argument as a string.
static ArgumentBuilder createStringArgument(std::string const &name, std::string const &description)
Creates a string argument with the given parameters.
static std::shared_ptr< ArgumentValidator< std::string > > createMultipleChoiceValidator(std::vector< std::string > const &choices)
This class provides the interface to create an option...
ArgumentBase const & getArgumentByName(std::string const &argumentName) const
Returns a reference to the argument with the specified long name.
Definition Option.cpp:79
bool getHasOptionBeenSet() const
Retrieves whether the option has been set.
Definition Option.cpp:125
This is the base class of the settings for a particular module.
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.
ToParametricSettings()
Creates a new set of POMDP settings.
bool check() const override
Checks whether the settings are consistent.
void finalize() override
Prepares the modules for further usage, should be called at the end of the initialization,...
std::vector< std::string > fscModes
const std::string transformSimpleOption
const std::string transformBinaryOption
const std::string allowSimplificationOption
const std::string selfloopReductionOption
SettingsType const & getModule()
Get module.
LabParser.cpp.
Definition cli.cpp:18