Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
IOSettings.cpp
Go to the documentation of this file.
2
11
14
15namespace storm {
16namespace settings {
17namespace modules {
18
19const std::string IOSettings::moduleName = "io";
20const std::string IOSettings::exportDotOptionName = "exportdot";
21const std::string IOSettings::exportDotMaxWidthOptionName = "dot-maxwidth";
22const std::string IOSettings::exportBuildOptionName = "exportbuild";
23const std::string IOSettings::exportExplicitOptionName = "exportexplicit";
24const std::string IOSettings::exportDdOptionName = "exportdd";
25const std::string IOSettings::exportJaniDotOptionName = "exportjanidot";
26const std::string IOSettings::exportCdfOptionName = "exportcdf";
27const std::string IOSettings::exportCdfOptionShortName = "cdf";
28const std::string IOSettings::exportSchedulerOptionName = "exportscheduler";
29const std::string IOSettings::exportCheckResultOptionName = "exportresult";
30const std::string IOSettings::explicitOptionName = "explicit";
31const std::string IOSettings::explicitOptionShortName = "exp";
32const std::string IOSettings::explicitDrnOptionName = "explicit-drn";
33const std::string IOSettings::explicitDrnOptionShortName = "drn";
34const std::string IOSettings::explicitImcaOptionName = "explicit-imca";
35const std::string IOSettings::explicitImcaOptionShortName = "imca";
36const std::string IOSettings::prismInputOptionName = "prism";
37const std::string IOSettings::janiInputOptionName = "jani";
38const std::string IOSettings::prismToJaniOptionName = "prism2jani";
39
40const std::string IOSettings::transitionRewardsOptionName = "transrew";
41const std::string IOSettings::stateRewardsOptionName = "staterew";
42const std::string IOSettings::choiceLabelingOptionName = "choicelab";
43const std::string IOSettings::constantsOptionName = "constants";
44const std::string IOSettings::constantsOptionShortName = "const";
45
46const std::string IOSettings::janiPropertyOptionName = "janiproperty";
47const std::string IOSettings::janiPropertyOptionShortName = "jprop";
48const std::string IOSettings::propertyOptionName = "prop";
49const std::string IOSettings::propertyOptionShortName = "prop";
50const std::string IOSettings::steadyStateDistrOptionName = "steadystate";
51const std::string IOSettings::expectedVisitingTimesOptionName = "expvisittimes";
52
53const std::string IOSettings::qvbsInputOptionName = "qvbs";
54const std::string IOSettings::qvbsInputOptionShortName = "qvbs";
55const std::string IOSettings::qvbsRootOptionName = "qvbsroot";
56const std::string IOSettings::propertiesAsMultiOptionName = "propsasmulti";
57
58std::string preventDRNPlaceholderOptionName = "no-drn-placeholders";
59
61 this->addOption(
62 storm::settings::OptionBuilder(moduleName, exportDotOptionName, false,
63 "If given, the loaded model will be written to the specified file in the dot format.")
64 .setIsAdvanced()
65 .addArgument(
66 storm::settings::ArgumentBuilder::createStringArgument("filename", "The name of the file to which the model is to be written.").build())
67 .build());
69 moduleName, exportDotMaxWidthOptionName, false,
70 "The maximal width for labels in the dot format. For longer lines a linebreak is inserted. Value 0 represents no linebreaks.")
71 .setIsAdvanced()
73 "width", "The maximal line width for the dot format. Default is 0 meaning no linebreaks.")
75 .build())
76 .build());
77 std::vector<std::string> exportFormats({"auto", "dot", "drdd", "drn", "json"});
78 this->addOption(
79 storm::settings::OptionBuilder(moduleName, exportBuildOptionName, false, "Exports the built model to a file.")
80 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("file", "The output file.").build())
81 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("format", "The output format. 'auto' detects from the file extension.")
84 .makeOptional()
85 .build())
86 .build());
87 this->addOption(
88 storm::settings::OptionBuilder(moduleName, exportJaniDotOptionName, false,
89 "If given, the loaded jani model will be written to the specified file in the dot format.")
90 .setIsAdvanced()
91 .addArgument(
92 storm::settings::ArgumentBuilder::createStringArgument("filename", "The name of the file to which the model is to be written.").build())
93 .build());
94 this->addOption(storm::settings::OptionBuilder(moduleName, exportCdfOptionName, false,
95 "Exports the cumulative density function for reward bounded properties into a .csv file.")
96 .setIsAdvanced()
97 .setShortName(exportCdfOptionShortName)
99 "directory", "A path to an existing directory where the cdf files will be stored.")
100 .build())
101 .build());
102 this->addOption(
103 storm::settings::OptionBuilder(moduleName, exportSchedulerOptionName, false,
104 "Exports the choices of an optimal scheduler to the given file (if supported by engine).")
105 .setIsAdvanced()
106 .addArgument(
107 storm::settings::ArgumentBuilder::createStringArgument("filename", "The output file. Use file extension '.json' to export in json.").build())
108 .build());
109 this->addOption(storm::settings::OptionBuilder(moduleName, exportCheckResultOptionName, false,
110 "Exports the result to a given file (if supported by engine). The export will be in json.")
111 .setIsAdvanced()
112 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "The output file.").build())
113 .build());
114 this->addOption(
115 storm::settings::OptionBuilder(moduleName, exportExplicitOptionName, "",
116 "If given, the loaded model will be written to the specified file in the drn format.")
117 .setIsAdvanced()
118 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "the name of the file to which the model is to be writen.").build())
119 .build());
120 this->addOption(storm::settings::OptionBuilder(moduleName, preventDRNPlaceholderOptionName, true, "If given, the exported DRN contains no placeholders")
121 .setIsAdvanced()
122 .build());
123 this->addOption(
124 storm::settings::OptionBuilder(moduleName, exportDdOptionName, "",
125 "If given, the loaded model will be written to the specified file in the drdd format.")
126 .setIsAdvanced()
127 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "the name of the file to which the model is to be writen.").build())
128 .build());
129 this->addOption(storm::settings::OptionBuilder(moduleName, explicitOptionName, false, "Parses the model given in an explicit (sparse) representation.")
130 .setShortName(explicitOptionShortName)
131 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("transition filename",
132 "The name of the file from which to read the transitions.")
134 .build())
135 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("labeling filename",
136 "The name of the file from which to read the state labeling.")
138 .build())
139 .build());
140 this->addOption(storm::settings::OptionBuilder(moduleName, explicitDrnOptionName, false, "Parses the model given in the DRN format.")
141 .setShortName(explicitDrnOptionShortName)
142 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("drn filename", "The name of the DRN file containing the model.")
144 .build())
145 .build());
146 this->addOption(storm::settings::OptionBuilder(moduleName, explicitImcaOptionName, false, "Parses the model given in the IMCA format.")
147 .setShortName(explicitImcaOptionShortName)
148 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("imca filename", "The name of the imca file containing the model.")
150 .build())
151 .build());
152 this->addOption(
153 storm::settings::OptionBuilder(moduleName, prismInputOptionName, false, "Parses the model given in the PRISM format.")
154 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "The name of the file from which to read the PRISM input.")
156 .build())
157 .build());
158 this->addOption(
159 storm::settings::OptionBuilder(moduleName, janiInputOptionName, false, "Parses the model given in the JANI format.")
160 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "The name of the file from which to read the JANI input.")
162 .build())
163 .build());
164 this->addOption(storm::settings::OptionBuilder(moduleName, prismToJaniOptionName, false, "If set, the input PRISM model is transformed to JANI.")
165 .setIsAdvanced()
166 .build());
167 this->addOption(
168 storm::settings::OptionBuilder(moduleName, propertyOptionName, false, "Specifies the properties to be checked on the model.")
169 .setShortName(propertyOptionShortName)
170 .addArgument(
171 storm::settings::ArgumentBuilder::createStringArgument("property or filename", "The formula or the file containing the formulas.").build())
172 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filter", "The names of the properties to check.")
174 .makeOptional()
175 .build())
176 .build());
177
178 this->addOption(storm::settings::OptionBuilder(moduleName, transitionRewardsOptionName, false,
179 "If given, the transition rewards are read from this file and added to the explicit model. Note that this "
180 "requires the model to be given as an explicit model (i.e., via --" +
181 explicitOptionName + ").")
182 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "The file from which to read the transition rewards.")
184 .build())
185 .build());
186 this->addOption(storm::settings::OptionBuilder(moduleName, stateRewardsOptionName, false,
187 "If given, the state rewards are read from this file and added to the explicit model. Note that this "
188 "requires the model to be given as an explicit model (i.e., via --" +
189 explicitOptionName + ").")
190 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "The file from which to read the state rewards.")
192 .build())
193 .build());
194 this->addOption(storm::settings::OptionBuilder(moduleName, choiceLabelingOptionName, false,
195 "If given, the choice labels are read from this file and added to the explicit model. Note that this "
196 "requires the model to be given as an explicit model (i.e., via --" +
197 explicitOptionName + ").")
198 .setIsAdvanced()
199 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("filename", "The file from which to read the choice labels.")
201 .build())
202 .build());
203 this->addOption(
205 moduleName, constantsOptionName, false,
206 "Specifies the constant replacements to use in symbolic models. Note that this requires the model to be given as an symbolic model (i.e., via --" +
207 prismInputOptionName + " or --" + janiInputOptionName + ").")
208 .setShortName(constantsOptionShortName)
209 .addArgument(
210 storm::settings::ArgumentBuilder::createStringArgument("values", "A comma separated list of constants and their value, e.g. a=1,b=2,c=3.")
212 .build())
213 .build());
214 this->addOption(storm::settings::OptionBuilder(moduleName, janiPropertyOptionName, false,
215 "Specifies the properties from the jani model (given by --" + janiInputOptionName + ") to be checked.")
216 .setShortName(janiPropertyOptionShortName)
217 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("values", "A comma separated list of properties to be checked")
219 .makeOptional()
220 .build())
221 .build());
222 std::vector<std::string> steadyStateDistrAlgorithms({"auto", "eqsys", "evt", "classic"});
223 this->addOption(
224 storm::settings::OptionBuilder(moduleName, steadyStateDistrOptionName, false,
225 "Computes the steady state distribution. Result can be exported using --" + exportCheckResultOptionName + ".")
226 .addArgument(
227 storm::settings::ArgumentBuilder::createStringArgument("algorithm", "The used algorithm. 'auto' chooses according to accuracy requirements.")
229 .setDefaultValueString("auto")
230 .makeOptional()
231 .build())
232 .build());
233 this->addOption(storm::settings::OptionBuilder(moduleName, expectedVisitingTimesOptionName, false,
234 "Computes the expected number of times each state is visited (DTMC) or the expected time spend in each "
235 "state (CTMC). Result can be exported using --" +
236 exportCheckResultOptionName + ".")
237 .build());
238
239 this->addOption(storm::settings::OptionBuilder(moduleName, qvbsInputOptionName, false, "Selects a model from the Quantitative Verification Benchmark Set.")
240 .setShortName(qvbsInputOptionShortName)
241 .addArgument(storm::settings::ArgumentBuilder::createStringArgument("model", "The short model name as in the benchmark set.").build())
242 .addArgument(storm::settings::ArgumentBuilder::createUnsignedIntegerArgument("instance-index", "The selected instance of this model.")
244 .makeOptional()
245 .build())
247 "filter", "The comma separated list of property names to check. Omit to check all, \"\" to check none.")
249 .makeOptional()
250 .build())
251 .build());
252
253 this->addOption(storm::settings::OptionBuilder(moduleName, propertiesAsMultiOptionName, false,
254 "If set, the selected properties are interpreted as a multi-objective formula.")
255 .setIsAdvanced()
256 .build());
257
258#ifdef STORM_HAVE_QVBS
259 std::string qvbsRootDefault = STORM_QVBS_ROOT;
260#else
261 std::string qvbsRootDefault = "";
262#endif
263 this->addOption(storm::settings::OptionBuilder(moduleName, qvbsRootOptionName, false,
264 "Specifies the root directory of the Quantitative Verification Benchmark Set. Default can be set in CMAKE.")
266 .build());
267}
268
270 return this->getOption(exportDotOptionName).getHasOptionBeenSet();
271}
272
274 return this->getOption(exportDotOptionName).getArgumentByName("filename").getValueAsString();
275}
276
278 return this->getOption(exportDotMaxWidthOptionName).getArgumentByName("width").getValueAsUnsignedInteger();
279}
280
282 return this->getOption(exportBuildOptionName).getHasOptionBeenSet();
283}
284
286 return this->getOption(exportBuildOptionName).getArgumentByName("file").getValueAsString();
287}
288
297
299 return this->getOption(exportJaniDotOptionName).getHasOptionBeenSet();
300}
301
303 return this->getOption(exportJaniDotOptionName).getArgumentByName("filename").getValueAsString();
304}
305
307 return this->getOption(exportExplicitOptionName).getHasOptionBeenSet();
308}
309
311 return this->getOption(exportExplicitOptionName).getArgumentByName("filename").getValueAsString();
312}
313
315 return this->getOption(preventDRNPlaceholderOptionName).getHasOptionBeenSet();
316}
317
319 return this->getOption(exportDdOptionName).getHasOptionBeenSet();
320}
321
323 return this->getOption(exportDdOptionName).getArgumentByName("filename").getValueAsString();
324}
325
327 return this->getOption(exportCdfOptionName).getHasOptionBeenSet();
328}
329
331 std::string result = this->getOption(exportCdfOptionName).getArgumentByName("directory").getValueAsString();
332 if (result.back() != '/') {
333 result.push_back('/');
334 }
335 return result;
336}
337
339 return this->getOption(exportSchedulerOptionName).getHasOptionBeenSet();
340}
341
343 return this->getOption(exportSchedulerOptionName).getArgumentByName("filename").getValueAsString();
344}
345
347 return this->getOption(exportCheckResultOptionName).getHasOptionBeenSet();
348}
349
351 return this->getOption(exportCheckResultOptionName).getArgumentByName("filename").getValueAsString();
352}
353
355 return this->getOption(explicitOptionName).getHasOptionBeenSet();
356}
357
359 return this->getOption(explicitOptionName).getArgumentByName("transition filename").getValueAsString();
360}
361
363 return this->getOption(explicitOptionName).getArgumentByName("labeling filename").getValueAsString();
364}
365
367 return this->getOption(explicitDrnOptionName).getHasOptionBeenSet();
368}
369
371 return this->getOption(explicitDrnOptionName).getArgumentByName("drn filename").getValueAsString();
372}
373
375 return this->getOption(explicitImcaOptionName).getHasOptionBeenSet();
376}
377
379 return this->getOption(explicitImcaOptionName).getArgumentByName("imca filename").getValueAsString();
380}
381
383 return this->getOption(prismInputOptionName).getHasOptionBeenSet();
384}
385
389
391 return this->getOption(prismToJaniOptionName).getHasOptionBeenSet();
392}
393
395 return this->getOption(prismInputOptionName).getArgumentByName("filename").getValueAsString();
396}
397
399 return this->getOption(janiInputOptionName).getHasOptionBeenSet();
400}
401
403 return this->getOption(janiInputOptionName).getArgumentByName("filename").getValueAsString();
404}
405
407 return this->getOption(transitionRewardsOptionName).getHasOptionBeenSet();
408}
409
411 return this->getOption(transitionRewardsOptionName).getArgumentByName("filename").getValueAsString();
412}
413
415 return this->getOption(stateRewardsOptionName).getHasOptionBeenSet();
416}
417
419 return this->getOption(stateRewardsOptionName).getArgumentByName("filename").getValueAsString();
420}
421
423 return this->getOption(choiceLabelingOptionName).getHasOptionBeenSet();
424}
425
427 return this->getOption(choiceLabelingOptionName).getArgumentByName("filename").getValueAsString();
428}
429
431 return this->getOption(constantsOptionName).getHasOptionBeenSet();
432}
433
435 return this->getOption(constantsOptionName).getArgumentByName("values").getValueAsString();
436}
437
439 return this->getOption(janiPropertyOptionName).getHasOptionBeenSet();
440}
441
443 return this->getOption(janiPropertyOptionName).getHasOptionBeenSet() &&
444 (this->getOption(janiPropertyOptionName).getArgumentByName("values").getValueAsString() != "");
445}
446
447std::vector<std::string> IOSettings::getSelectedJaniProperties() const {
448 return storm::parser::parseCommaSeperatedValues(this->getOption(janiPropertyOptionName).getArgumentByName("values").getValueAsString());
449}
450
452 return this->getOption(propertyOptionName).getHasOptionBeenSet();
453}
454
455std::string IOSettings::getProperty() const {
456 return this->getOption(propertyOptionName).getArgumentByName("property or filename").getValueAsString();
457}
458
459std::string IOSettings::getPropertyFilter() const {
460 return this->getOption(propertyOptionName).getArgumentByName("filter").getValueAsString();
461}
462
464 return this->getOption(steadyStateDistrOptionName).getHasOptionBeenSet();
465}
466
468 auto alg = this->getOption(steadyStateDistrOptionName).getArgumentByName("algorithm").getValueAsString();
469 if (alg == "auto") {
471 } else if (alg == "eqsys") {
473 } else if (alg == "classic") {
475 } else {
476 STORM_LOG_ASSERT(alg == "evt", "Unexpected algorithm type.");
478 }
479}
480
482 return this->getOption(expectedVisitingTimesOptionName).getHasOptionBeenSet();
483}
484
486 return this->getOption(qvbsInputOptionName).getHasOptionBeenSet();
487}
488
489std::string IOSettings::getQvbsModelName() const {
490 return this->getOption(qvbsInputOptionName).getArgumentByName("model").getValueAsString();
491}
492
494 return this->getOption(qvbsInputOptionName).getArgumentByName("instance-index").getValueAsUnsignedInteger();
495}
496
497boost::optional<std::vector<std::string>> IOSettings::getQvbsPropertyFilter() const {
498 std::string listAsString = this->getOption(qvbsInputOptionName).getArgumentByName("filter").getValueAsString();
499 if (listAsString == "") {
500 if (this->getOption(qvbsInputOptionName).getArgumentByName("filter").wasSetFromDefaultValue()) {
501 return boost::none;
502 } else {
503 return std::vector<std::string>();
504 }
505 } else {
507 }
508}
509
510std::string IOSettings::getQvbsRoot() const {
511 auto const& path = this->getOption(qvbsRootOptionName).getArgumentByName("path");
512#ifndef STORM_HAVE_QVBS
513 STORM_LOG_THROW(this->getOption(qvbsRootOptionName).getHasOptionBeenSet(), storm::exceptions::InvalidSettingsException,
514 "QVBS Root is not specified. Either use the --" + qvbsRootOptionName + " option or specify it within CMAKE.");
515#endif
516 return path.getValueAsString();
517}
518
520 return this->getOption(propertiesAsMultiOptionName).getHasOptionBeenSet();
521}
522
524 STORM_LOG_WARN_COND(!isExportDdSet(), "Option '--" << moduleName << ":" << exportDdOptionName << "' is depreciated. Use '--" << moduleName << ":"
525 << exportBuildOptionName << "' instead.");
526 STORM_LOG_WARN_COND(!isExportDotSet(), "Option '--" << moduleName << ":" << exportDotOptionName << "' is depreciated. Use '--" << moduleName << ":"
527 << exportBuildOptionName << "' instead.");
528 STORM_LOG_WARN_COND(!isExportExplicitSet(), "Option '--" << moduleName << ":" << exportExplicitOptionName << "' is depreciated. Use '--" << moduleName
529 << ":" << exportBuildOptionName << "' instead.");
530}
531
532bool IOSettings::check() const {
533 // Ensure that at most one symbolic input model is given.
537 STORM_LOG_THROW(numSymbolicInputs <= 1, storm::exceptions::InvalidSettingsException, "Multiple symbolic input models.");
538 STORM_LOG_THROW(!isExportJaniDotSet() || isJaniInputSet() || isQvbsInputSet(), storm::exceptions::InvalidSettingsException,
539 "Jani-to-dot export is only available for jani models");
540
541 // Ensure that not two explicit input models were given.
545 STORM_LOG_THROW(numExplicitInputs <= 1, storm::exceptions::InvalidSettingsException, "Multiple explicit input models");
546
547 // Ensure that the model was given either symbolically or explicitly.
548 STORM_LOG_THROW(numSymbolicInputs + numExplicitInputs <= 1, storm::exceptions::InvalidSettingsException,
549 "The model may be either given in an explicit or a symbolic format (PRISM or JANI), but not both.");
550
551 // Make sure PRISM-to-JANI conversion is only set if the actual input is in PRISM format.
552 STORM_LOG_THROW(!isPrismToJaniSet() || isPrismInputSet(), storm::exceptions::InvalidSettingsException,
553 "For the transformation from PRISM to JANI, the input model must be given in the prism format.");
554
555 return true;
556}
557
558} // namespace modules
559} // namespace settings
560} // namespace storm
virtual std::string getValueAsString() const =0
Retrieves the value of this argument as a string.
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.
static ArgumentBuilder createStringArgument(std::string const &name, std::string const &description)
Creates a string argument with the given parameters.
static std::shared_ptr< ArgumentValidator< std::string > > createMultipleChoiceValidator(std::vector< std::string > const &choices)
static std::shared_ptr< ArgumentValidator< std::string > > createExistingFileValidator()
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
bool isJaniPropertiesSet() const
Retrieves whether the jani-property option was set.
bool isExportExplicitSet() const
Retrieves whether the export-to-explicit option was set.
std::string getExportExplicitFilename() const
Retrieves the name in which to write the model in explicit format, if the option was set.
std::string getExportBuildFilename() const
Retrieves the name in which to write the model in json format, if export-to-json option was set.
bool isExportCdfSet() const
Retrieves whether the cumulative density function for reward bounded properties should be exported.
static const std::string moduleName
Definition IOSettings.h:381
std::string getExplicitIMCAFilename() const
Retrieves the name of the file that contains the model in the IMCA format.
bool areJaniPropertiesSelected() const
Retrieves whether one or more jani-properties have been selected.
std::string getExportJaniDotFilename() const
Retrieves the name in which to write the jani model in dot format, if the export-to-jani-dot option w...
bool isExportCheckResultSet() const
Retrieves whether the check result should be exported.
std::string getChoiceLabelingFilename() const
Retrieves the name of the file that contains the choice labeling if the model was given using the exp...
bool isStateRewardsSet() const
Retrieves whether the state reward option was set.
bool isExportDdSet() const
Retrieves whether the export-to-dd option was set.
std::string getExportSchedulerFilename() const
Retrieves a filename to which an optimal scheduler will be exported.
std::string getExportCdfDirectory() const
Retrieves a path to a directory in which the cdf files will be stored.
bool isPrismToJaniSet() const
Retrieves whether the option to convert PRISM to JANI input was set.
size_t getExportDotMaxWidth() const
Retrieves the maximal width for labels in the dot format.
std::string getProperty() const
Retrieves the property specified with the property option.
std::string getJaniInputFilename() const
Retrieves the name of the file that contains the JANI model specification if the model was given usin...
bool isExportDotSet() const
Retrieves whether the export-to-dot option was set.
bool isChoiceLabelingSet() const
Retrieves whether the choice labeling option was set.
bool isPrismOrJaniInputSet() const
Retrieves whether the JANI or PRISM input option was set.
std::string getPropertyFilter() const
Retrieves the property filter.
bool isExportBuildSet() const
Retrieves whether the exportbuild option was set.
std::string getPrismInputFilename() const
Retrieves the name of the file that contains the PRISM model specification if the model was given usi...
bool isQvbsInputSet() const
Retrieves whether the input model is to be read from the quantitative verification benchmark set (QVB...
bool isComputeSteadyStateDistributionSet() const
Retrieves whether the steady-state distribution is to be computed.
std::string getConstantDefinitionString() const
Retrieves the string that defines the constants of a symbolic model (given via the symbolic option).
bool isExplicitDRNSet() const
Retrieves whether the explicit option with DRN was set.
std::string getExplicitDRNFilename() const
Retrieves the name of the file that contains the model in the DRN format.
std::string getLabelingFilename() const
Retrieves the name of the file that contains the state labeling if the model was given using the expl...
void finalize() override
Prepares the modules for further usage, should be called at the end of the initialization,...
boost::optional< std::vector< std::string > > getQvbsPropertyFilter() const
Retrieves the selected property names.
bool isExportSchedulerSet() const
Retrieves whether an optimal scheduler is to be exported.
bool isConstantsSet() const
Retrieves whether the constants option was set.
std::string getStateRewardsFilename() const
Retrieves the name of the file that contains the state rewards if the model was given using the expli...
std::string getTransitionRewardsFilename() const
Retrieves the name of the file that contains the transition rewards if the model was given using the ...
bool check() const override
Checks whether the settings are consistent.
bool isPropertySet() const
Retrieves whether the property option was set.
std::string getQvbsModelName() const
Retrieves the specified model (short-)name of the QVBS.
std::vector< std::string > getSelectedJaniProperties() const
IOSettings()
Creates a new set of IO settings.
std::string getExportCheckResultFilename() const
Retrieves a filename to which the check result should be exported.
storm::SteadyStateDistributionAlgorithm getSteadyStateDistributionAlgorithm() const
std::string getTransitionFilename() const
Retrieves the name of the file that contains the transitions if the model was given using the explici...
bool isJaniInputSet() const
Retrieves whether the JANI input option was set.
uint64_t getQvbsInstanceIndex() const
Retrieves the selected model instance (file + open parameters of the model)
bool isExplicitIMCASet() const
Retrieves whether the explicit option with IMCA was set.
bool isExplicitExportPlaceholdersDisabled() const
Retrieves whether we prevent the usage of placeholders in the explicit DRN format.
std::string getExportDotFilename() const
Retrieves the name in which to write the model in dot format, if the export-to-dot option was set.
storm::io::ModelExportFormat getExportBuildFormat() const
Retrieves the specified export format for the exportbuild option.
bool isPropertiesAsMultiSet() const
Retrieves whether the input properties are to be interpreted as a single multi-objective formula.
std::string getQvbsRoot() const
Retrieves the specified root directory of qvbs.
bool isPrismInputSet() const
Retrieves whether the PRISM language option was set.
bool isComputeExpectedVisitingTimesSet() const
Retrieves whether the expected visiting times are to be computed.
bool isTransitionRewardsSet() const
Retrieves whether the transition reward option was set.
bool isExplicitSet() const
Retrieves whether the explicit option was set.
std::string getExportDdFilename() const
Retrieves the name in which to write the model in dd format, if the option was set.
bool isExportJaniDotSet() const
Retrieves whether the export-to-dot option for jani was set.
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.
#define STORM_LOG_ASSERT(cond, message)
Definition macros.h:11
#define STORM_LOG_WARN_COND(cond, message)
Definition macros.h:38
#define STORM_LOG_THROW(cond, exception, message)
Definition macros.h:30
ModelExportFormat getModelExportFormatFromString(std::string const &input)
ModelExportFormat getModelExportFormatFromFileExtension(std::string const &filename)
std::vector< std::string > parseCommaSeperatedValues(std::string const &input)
Given a string seperated by commas, returns the values.
Definition CSVParser.cpp:11
std::string preventDRNPlaceholderOptionName
SettingsType const & getModule()
Get module.
LabParser.cpp.
Definition cli.cpp:18