Storm 1.13.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
HintSettings.cpp
Go to the documentation of this file.
2
8
9namespace storm {
10namespace settings {
11namespace modules {
12
13const std::string HintSettings::moduleName = "hints";
14
15const std::string stateHintOption = "states";
16
18 this->addOption(storm::settings::OptionBuilder(moduleName, stateHintOption, true, "Estimate of the number of reachable states")
19 .addArgument(storm::settings::ArgumentBuilder::createUnsignedIntegerArgument("number", "size.").build())
20 .build());
21}
22
24 return this->getOption(stateHintOption).getHasOptionBeenSet();
25}
26
28 return this->getOption(stateHintOption).getArgumentByName("number").getValueAsUnsignedInteger();
29}
30
31bool HintSettings::check() const {
32 return true;
33}
34
36 // Intentionally left empty
37}
38
39} // namespace modules
40} // namespace settings
41} // namespace storm
virtual uint_fast64_t getValueAsUnsignedInteger() const =0
Retrieves the value of this argument as an unsigned integer.
static ArgumentBuilder createUnsignedIntegerArgument(std::string const &name, std::string const &description)
Creates an unsigned integer 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
HintSettings()
Creates a new set of transformer settings.
void finalize() override
Prepares the modules for further usage, should be called at the end of the initialization,...
static const std::string moduleName
bool isNumberStatesSet() const
Retrieves whether the option that estimates the number of states is set.
bool check() const override
Checks whether the settings are consistent.
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.
const std::string stateHintOption