Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
GSPNExportSettings.cpp
Go to the documentation of this file.
2
9
11
12namespace storm {
13namespace settings {
14namespace modules {
15const std::string GSPNExportSettings::moduleName = "exportGspn";
16
17const std::string GSPNExportSettings::writeToDotOptionName = "gspn-dot-output";
18
19const std::string GSPNExportSettings::writeToPnmlOptionName = "to-pnml";
20const std::string GSPNExportSettings::writeToPnproOptionName = "to-pnpro";
21const std::string GSPNExportSettings::writeToJsonOptionName = "to-json";
22const std::string GSPNExportSettings::writeToJaniOptionName = "to-jani";
23const std::string GSPNExportSettings::addJaniPropertiesOptionName = "addprops";
24const std::string GSPNExportSettings::writeStatsOptionName = "to-stats";
25const std::string GSPNExportSettings::displayStatsOptionName = "show-stats";
26
27// const std::string GSPNExportSettings::janiFileOptionShortName = "dotoutput";
28
30 this->addOption(storm::settings::OptionBuilder(moduleName, writeToDotOptionName, false, "Destination for the dot output.")
31 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "path to file").build())
32 .build());
33 this->addOption(storm::settings::OptionBuilder(moduleName, writeToPnmlOptionName, false, "Destination for the pnml output")
34 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "path to file").build())
35 .build());
36 this->addOption(storm::settings::OptionBuilder(moduleName, writeToPnproOptionName, false, "Destination for the pnpro output")
37 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "path to file").build())
38 .build());
39 this->addOption(storm::settings::OptionBuilder(moduleName, writeToJsonOptionName, false, "Destination for the json output")
40 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "path to file").build())
41 .build());
42 this->addOption(storm::settings::OptionBuilder(moduleName, writeToJaniOptionName, false, "Destination for the jani output")
43 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "path to file").build())
44 .build());
45 this->addOption(storm::settings::OptionBuilder(moduleName, addJaniPropertiesOptionName, false,
46 "If set, a set of standard properties is added to the exported jani model.")
47 .build());
48 this->addOption(storm::settings::OptionBuilder(moduleName, writeStatsOptionName, false, "Destination for the stats file")
49 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "path to file").build())
50 .build());
51 this->addOption(storm::settings::OptionBuilder(moduleName, displayStatsOptionName, false, "Print stats to stdout").build());
52}
53
55 return this->getOption(writeToDotOptionName).getHasOptionBeenSet();
56}
57
59 return this->getOption(writeToDotOptionName).getArgumentByName("filename").getValueAsString();
60}
61
63 return this->getOption(writeToPnmlOptionName).getHasOptionBeenSet();
64}
65
67 return this->getOption(writeToPnmlOptionName).getArgumentByName("filename").getValueAsString();
68}
69
71 return this->getOption(writeToPnproOptionName).getHasOptionBeenSet();
72}
73
75 return this->getOption(writeToPnproOptionName).getArgumentByName("filename").getValueAsString();
76}
77
79 return this->getOption(writeToJsonOptionName).getHasOptionBeenSet();
80}
81
83 return this->getOption(writeToJsonOptionName).getArgumentByName("filename").getValueAsString();
84}
85
87 return this->getOption(writeToJaniOptionName).getHasOptionBeenSet();
88}
89
91 return this->getOption(writeToJaniOptionName).getArgumentByName("filename").getValueAsString();
92}
93
95 return this->getOption(addJaniPropertiesOptionName).getHasOptionBeenSet();
96}
97
99 return this->getOption(displayStatsOptionName).getHasOptionBeenSet();
100}
101
103 return this->getOption(writeStatsOptionName).getHasOptionBeenSet();
104}
105
107 return this->getOption(writeStatsOptionName).getArgumentByName("filename").getValueAsString();
108}
109
111
113 return true;
114}
115} // namespace modules
116} // namespace settings
117} // 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
GSPNExportSettings()
Creates a new GSPNExport setting.
bool isAddJaniPropertiesSet() const
Returns whether a set of standard properties is to be added when exporting to jani.
std::string getWriteToDotFilename() const
Retrieves the dot file name.
void finalize() override
Prepares the modules for further usage, should be called at the end of the initialization,...
bool isWriteToDotSet() const
Retrieve whether the to dot option was set.
bool check() const override
Checks whether the settings are consistent.
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