Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ModelCheckerSettings.cpp
Go to the documentation of this file.
2
9
10namespace storm {
11namespace settings {
12namespace modules {
13
14const std::string ModelCheckerSettings::moduleName = "modelchecker";
15const std::string ModelCheckerSettings::filterRewZeroOptionName = "filterrewzero";
16const std::string ModelCheckerSettings::ltl2daToolOptionName = "ltl2datool";
17
19 this->addOption(storm::settings::OptionBuilder(moduleName, filterRewZeroOptionName, false,
20 "If set, states with reward zero are filtered out, potentially reducing the size of the equation system")
21 .setIsAdvanced()
22 .build());
23 this->addOption(storm::settings::OptionBuilder(moduleName, ltl2daToolOptionName, false,
24 "If set, use an external tool to convert LTL formulas to state-based deterministic automata in HOA format")
25 .setIsAdvanced()
27 "filename", "A script that can be called with a prefix formula and a name for the output automaton.")
28 .build())
29 .build());
30}
31
33 return this->getOption(filterRewZeroOptionName).getHasOptionBeenSet();
34}
35
37 return this->getOption(ltl2daToolOptionName).getHasOptionBeenSet();
38}
39
41 return this->getOption(ltl2daToolOptionName).getArgumentByName("filename").getValueAsString();
42}
43
44} // namespace modules
45} // namespace settings
46} // 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.
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
ModelCheckerSettings()
Creates a new set of general settings.
bool isLtl2daToolSet() const
Retrieves whether the external ltl2da tool has been set.
std::string getLtl2daTool() const
Retrieves the external ltl2da tool that is used for converting LTL formulas to deterministic automata...
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.
LabParser.cpp.
Definition cli.cpp:18