Storm 1.11.1.1
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";
17const std::string assumeGraphPreservingName = "assume-graph-preserving";
18const std::string discreteVariablesName = "discrete-variables";
19
21 this->addOption(storm::settings::OptionBuilder(moduleName, regionOptionName, false, "Sets the region(s) considered for analysis.")
22 .setShortName(regionShortOptionName)
24 "regioninput", "The region(s) given in format a<=x<=b,c<=y<=d seperated by ';'. Can also be a file.")
25 .build())
26 .build());
27
28 this->addOption(storm::settings::OptionBuilder(moduleName, regionBoundOptionName, false, "Sets the region bound considered for analysis.")
30 "regionbound", "The bound for the region result for all variables: 0+bound <= var <=1-bound")
31 .build())
32 .build());
33
34 this->addOption(
36 "Enables mode in which the region might not preserve the graph structure of the parametric model.")
37 .addArgument(storm::settings::ArgumentBuilder::createBooleanArgument("assumegraphpreserving", "Assume that the region is graph preserving.")
38 .setDefaultValueBoolean(true)
39 .build())
40 .build());
41
43 "Comma-seperated list of variables that are discrete and will be split to the region edges.")
44 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("discretevars", "The variables in the format p1,p2,p3.")
45 .setDefaultValueString("")
46 .build())
47 .build());
48}
49
51 return this->getOption(regionOptionName).getHasOptionBeenSet();
52}
53
55 return this->getOption(regionOptionName).getArgumentByName("regioninput").getValueAsString();
56}
57
59 return this->getOption(regionBoundOptionName).getHasOptionBeenSet();
60}
61
63 return this->getOption(regionBoundOptionName).getArgumentByName("regionbound").getValueAsString();
64}
65
67 return this->getOption(assumeGraphPreservingName).getArgumentByName("assumegraphpreserving").getValueAsBoolean();
68}
69
71 return this->getOption(discreteVariablesName).getArgumentByName("discretevars").getValueAsString();
72}
73
74} // namespace modules
75} // namespace settings
76} // namespace storm
virtual std::string getValueAsString() const =0
Retrieves the value of this argument as a string.
virtual bool getValueAsBoolean() const =0
Retrieves the value of this argument as a boolean.
static ArgumentBuilder createBooleanArgument(std::string const &name, std::string const &description)
Creates a boolean argument with the given parameters.
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.
std::string getDiscreteVariablesString() const
Retrieves the discrete variables string.
bool isAssumeGraphPreservingSet() const
Retrieves whether non-graph-preserving mode is enabled.
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 discreteVariablesName
const std::string assumeGraphPreservingName
const std::string regionOptionName
LabParser.cpp.