Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
RegionSettings.cpp
Go to the documentation of this file.
2
5
8
9namespace storm {
10namespace settings {
11namespace modules {
12
13const std::string RegionSettings::moduleName = "region";
14const std::string regionOptionName = "region";
15const std::string regionShortOptionName = "reg";
16const std::string regionBoundOptionName = "regionbound";
17
19 this->addOption(storm::settings::OptionBuilder(moduleName, regionOptionName, false, "Sets the region(s) considered for analysis.")
20 .setShortName(regionShortOptionName)
22 "regioninput", "The region(s) given in format a<=x<=b,c<=y<=d seperated by ';'. Can also be a file.")
23 .build())
24 .build());
25
26 this->addOption(storm::settings::OptionBuilder(moduleName, regionBoundOptionName, false, "Sets the region bound considered for analysis.")
28 "regionbound", "The bound for the region result for all variables: 0+bound <= var <=1-bound")
29 .build())
30 .build());
31}
32
34 return this->getOption(regionOptionName).getHasOptionBeenSet();
35}
36
38 return this->getOption(regionOptionName).getArgumentByName("regioninput").getValueAsString();
39}
40
42 return this->getOption(regionBoundOptionName).getHasOptionBeenSet();
43}
44
46 return this->getOption(regionBoundOptionName).getArgumentByName("regionbound").getValueAsString();
47}
48
49} // namespace modules
50} // namespace settings
51} // 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
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.
bool isRegionSet() const
Retrieves whether region(s) were declared.
std::string getRegionString() const
Retrieves the region definition string.
std::string getRegionBoundString() const
Retrieves the region definition string.
bool isRegionBoundSet() const
Retrieves whether region bound is declared.
RegionSettings()
Creates a new set of parametric model checking settings.
const std::string regionShortOptionName
const std::string regionBoundOptionName
const std::string regionOptionName
LabParser.cpp.
Definition cli.cpp:18