Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
OviSolverSettings.cpp
Go to the documentation of this file.
2
6
7namespace storm {
8namespace settings {
9namespace modules {
10
11const std::string OviSolverSettings::moduleName = "ovi";
12const std::string OviSolverSettings::upperBoundGuessingFactorOptionName = "upper-bound-factor";
13
15 this->addOption(storm::settings::OptionBuilder(moduleName, upperBoundGuessingFactorOptionName, false, "Sets how optimistic the upper bound is guessed.")
16 .setIsAdvanced()
17 .addArgument(storm::settings::ArgumentBuilder::createDoubleArgument("factor", "The factor.")
20 .build())
21 .build());
22}
23
25 return this->getOption(upperBoundGuessingFactorOptionName).getHasOptionBeenSet();
26}
27
29 return this->getOption(upperBoundGuessingFactorOptionName).getArgumentByName("factor").getValueAsDouble();
30}
31
32} // namespace modules
33} // namespace settings
34} // namespace storm
virtual double getValueAsDouble() const =0
Retrieves the value of this argument as a double.
static ArgumentBuilder createDoubleArgument(std::string const &name, std::string const &description)
Creates a double argument with the given parameters.
static std::shared_ptr< ArgumentValidator< double > > createDoubleGreaterValidator(double lowerBound)
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.
SettingsType const & getModule()
Get module.
LabParser.cpp.
Definition cli.cpp:18