16const std::string DftIOSettings::dftFileOptionName =
"dftfile";
17const std::string DftIOSettings::dftFileOptionShortName =
"dft";
18const std::string DftIOSettings::dftJsonFileOptionName =
"dftfile-json";
19const std::string DftIOSettings::dftJsonFileOptionShortName =
"dftjson";
20const std::string DftIOSettings::propExpectedTimeOptionName =
"expectedtime";
21const std::string DftIOSettings::propExpectedTimeOptionShortName =
"mttf";
22const std::string DftIOSettings::propProbabilityOptionName =
"probability";
23const std::string DftIOSettings::propTimeboundOptionName =
"timebound";
24const std::string DftIOSettings::propTimepointsOptionName =
"timepoints";
25const std::string DftIOSettings::minValueOptionName =
"min";
26const std::string DftIOSettings::maxValueOptionName =
"max";
27const std::string DftIOSettings::analyzeWithBdds =
"bdd";
28const std::string DftIOSettings::minimalCutSets =
"mcs";
29const std::string DftIOSettings::exportToJsonOptionName =
"export-json";
30const std::string DftIOSettings::exportToSmtOptionName =
"export-smt";
31const std::string DftIOSettings::exportToBddDotOptionName =
"export-bdd-dot";
32const std::string DftIOSettings::dftStatisticsOptionName =
"dft-statistics";
33const std::string DftIOSettings::dftStatisticsOptionShortName =
"dftstats";
34const std::string DftIOSettings::importanceMeasureOptionName =
"importance";
39 .setShortName(dftFileOptionShortName)
46 .setShortName(dftJsonFileOptionShortName)
52 .setShortName(propExpectedTimeOptionShortName)
61 "Compute probability of system failure up to given timebound for a set of given timepoints [starttime, "
62 "starttime+inc, starttime+2inc, ... ,endtime]")
71 .setDefaultValueDouble(1.0)
93 .setShortName(dftStatisticsOptionShortName)
143 std::vector<double> timepoints;
144 for (
double time = starttime; time <= endtime; time += inc) {
145 timepoints.push_back(time);
bool usePropTimepoints() const
Retrieves whether the property timepoints should be used.
void finalize() override
Prepares the modules for further usage, should be called at the end of the initialization,...
DftIOSettings()
Creates a new set of IO settings for DFTs.
bool usePropTimebound() const
Retrieves whether the property timebound should be used.
bool usePropExpectedTime() const
Retrieves whether the property expected time should be used.
bool isDftFileSet() const
Retrieves whether the dft file option was set.
std::string getDftJsonFilename() const
Retrieves the name of the json file that contains the dft specification.
bool isAnalyzeWithBdds() const
Retrieves whether the analyze with Bdds option was set.
bool isMinimalCutSets() const
Retrieves whether the minimal cut sets option was set.
static const std::string moduleName
double getPropTimebound() const
Retrieves the timebound for the timebound property.
bool usePropProbability() const
Retrieves whether the property probability should be used.
bool isComputeMaximalValue() const
Retrieves whether the maximal value should be computed for non-determinism.
bool isShowDftStatisticsSet() const
Retrieves whether statistics about the DFT analysis should be displayed.
bool isExportToSmt() const
Retrieves whether the export to smtlib2 file option was set.
bool isDftJsonFileSet() const
Retrieves whether the dft file option for Json was set.
std::string getExportSmtFilename() const
Retrieves the name of the smtlib2 file to export to.
bool isExportToJson() const
Retrieves whether the export to Json file option was set.
std::string getDftFilename() const
Retrieves the name of the file that contains the dft specification.
bool isImportanceMeasureSet() const
Retrieves whether to calculate an importance measure.
bool isComputeMinimalValue() const
Retrieves whether the minimal value should be computed for non-determinism.
bool check() const override
Checks whether the settings are consistent.
std::string getImportanceMeasure() const
Retrieves the name of the importance measure to calculate.
std::vector< double > getPropTimepoints() const
Retrieves the settings for the timepoints property.
std::string getExportBddDotFilename() const
Retrieves the name of the dot file to export to.
bool isExportToBddDot() const
Retrieves whether the export to Bdd Dot file option was set.
std::string getExportJsonFilename() const
Retrieves the name of the json file to export to.
virtual std::string getValueAsString() const =0
Retrieves the value of this argument as a string.
virtual double getValueAsDouble() const =0
Retrieves the value of this argument as a double.
static ArgumentBuilder createDoubleArgument(std::string const &name, std::string const &description)
Creates a double 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< double > > createDoubleGreaterValidator(double lowerBound)
static std::shared_ptr< ArgumentValidator< double > > createDoubleGreaterEqualValidator(double lowerBound)
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.
bool getHasOptionBeenSet() const
Retrieves whether the option has been set.
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_THROW(cond, exception, message)