|
Storm 1.14.0.1
A Modern Probabilistic Model Checker
|
This is the base class of the settings for a particular module. More...
#include <ModuleSettings.h>
Inherited by storm::dft::settings::modules::DftGspnSettings, storm::dft::settings::modules::DftIOSettings, storm::dft::settings::modules::FaultTreeSettings, storm::settings::modules::AbstractionSettings, storm::settings::modules::BeliefExplorationSettings, storm::settings::modules::BisimulationSettings, storm::settings::modules::BuildSettings, storm::settings::modules::ConditionalSettings, storm::settings::modules::ConversionGeneralSettings, storm::settings::modules::ConversionInputSettings, storm::settings::modules::ConversionOutputSettings, storm::settings::modules::CoreSettings, storm::settings::modules::CounterexampleGeneratorSettings, storm::settings::modules::CuddSettings, storm::settings::modules::DebugSettings, storm::settings::modules::DerivativeSettings, storm::settings::modules::EigenEquationSolverSettings, storm::settings::modules::EliminationSettings, storm::settings::modules::ExplorationSettings, storm::settings::modules::FeasibilitySettings, storm::settings::modules::GSPNExportSettings, storm::settings::modules::GSPNSettings, storm::settings::modules::GameSolverSettings, storm::settings::modules::GeneralSettings, storm::settings::modules::GlpkSettings, storm::settings::modules::GmmxxEquationSolverSettings, storm::settings::modules::GurobiSettings, storm::settings::modules::HintSettings, storm::settings::modules::IOSettings, storm::settings::modules::JaniExportSettings, storm::settings::modules::LongRunAverageSolverSettings, storm::settings::modules::MinMaxEquationSolverSettings, storm::settings::modules::ModelCheckerSettings, storm::settings::modules::MonotonicitySettings, storm::settings::modules::MultiObjectiveSettings, storm::settings::modules::MultiplierSettings, storm::settings::modules::NativeEquationSolverSettings, storm::settings::modules::OviSolverSettings, storm::settings::modules::POMDPSettings, storm::settings::modules::ParametricSettings, storm::settings::modules::PartitionSettings, storm::settings::modules::PrismExportSettings, storm::settings::modules::QualitativePOMDPAnalysisSettings, storm::settings::modules::RegionSettings, storm::settings::modules::RegionVerificationSettings, storm::settings::modules::ResourceSettings, storm::settings::modules::SamplingSettings, storm::settings::modules::SylvanSettings, storm::settings::modules::TimeBoundedSolverSettings, storm::settings::modules::TopologicalEquationSolverSettings, and storm::settings::modules::TransformationSettings.
Public Member Functions | |
| ModuleSettings (std::string const &moduleName) | |
| Constructs a new settings object. | |
| virtual | ~ModuleSettings () |
| virtual bool | check () const |
| Checks whether the settings are consistent. | |
| virtual void | finalize () |
| Prepares the modules for further usage, should be called at the end of the initialization, before checks are executed. | |
| std::string const & | getModuleName () const |
| Retrieves the name of the module to which these settings belong. | |
| std::vector< std::shared_ptr< Option > > const & | getOptions () const |
| Retrieves the options of this module. | |
| uint_fast64_t | getPrintLengthOfLongestOption (bool includeAdvanced) const |
| Retrieves the (print) length of the longest option. | |
| void | restoreDefaults () |
| Restores the default values for all arguments of all options. | |
Protected Member Functions | |
| Option & | getOption (std::string const &longName) |
| Retrieves the option with the given long name. | |
| Option const & | getOption (std::string const &longName) const |
| Retrieves the option with the given long name. | |
| bool | isSet (std::string const &optionName) const |
| Retrieves whether the option with the given name was set. | |
| void | addOption (std::shared_ptr< Option > const &option) |
| Adds and registers the given option. | |
This is the base class of the settings for a particular module.
Definition at line 20 of file ModuleSettings.h.
| storm::settings::modules::ModuleSettings::ModuleSettings | ( | std::string const & | moduleName | ) |
Constructs a new settings object.
| moduleName | The name of the module for which to build the settings. |
Definition at line 11 of file ModuleSettings.cpp.
|
inlinevirtual |
Definition at line 28 of file ModuleSettings.h.
|
protected |
Adds and registers the given option.
| option | The option to add and register. |
Definition at line 47 of file ModuleSettings.cpp.
|
virtual |
Checks whether the settings are consistent.
If they are inconsistent, an exception is thrown.
Reimplemented in storm::dft::settings::modules::DftGspnSettings, storm::dft::settings::modules::DftIOSettings, storm::dft::settings::modules::FaultTreeSettings, storm::settings::modules::BisimulationSettings, storm::settings::modules::ConversionGeneralSettings, storm::settings::modules::ConversionInputSettings, storm::settings::modules::ConversionOutputSettings, storm::settings::modules::CoreSettings, storm::settings::modules::CounterexampleGeneratorSettings, storm::settings::modules::EigenEquationSolverSettings, storm::settings::modules::ExplorationSettings, storm::settings::modules::GeneralSettings, storm::settings::modules::GlpkSettings, storm::settings::modules::GmmxxEquationSolverSettings, storm::settings::modules::GSPNExportSettings, storm::settings::modules::GSPNSettings, storm::settings::modules::GurobiSettings, storm::settings::modules::HintSettings, storm::settings::modules::IOSettings, storm::settings::modules::JaniExportSettings, storm::settings::modules::MultiObjectiveSettings, storm::settings::modules::NativeEquationSolverSettings, storm::settings::modules::POMDPSettings, storm::settings::modules::PrismExportSettings, storm::settings::modules::QualitativePOMDPAnalysisSettings, storm::settings::modules::SylvanSettings, storm::settings::modules::TopologicalEquationSolverSettings, and storm::settings::modules::TransformationSettings.
Definition at line 15 of file ModuleSettings.cpp.
|
virtual |
Prepares the modules for further usage, should be called at the end of the initialization, before checks are executed.
Reimplemented in storm::dft::settings::modules::DftGspnSettings, storm::dft::settings::modules::DftIOSettings, storm::dft::settings::modules::FaultTreeSettings, storm::settings::modules::ConversionGeneralSettings, storm::settings::modules::ConversionInputSettings, storm::settings::modules::ConversionOutputSettings, storm::settings::modules::CoreSettings, storm::settings::modules::GeneralSettings, storm::settings::modules::GSPNExportSettings, storm::settings::modules::GSPNSettings, storm::settings::modules::HintSettings, storm::settings::modules::IOSettings, storm::settings::modules::JaniExportSettings, storm::settings::modules::POMDPSettings, storm::settings::modules::PrismExportSettings, storm::settings::modules::QualitativePOMDPAnalysisSettings, and storm::settings::modules::TransformationSettings.
Definition at line 19 of file ModuleSettings.cpp.
| std::string const & storm::settings::modules::ModuleSettings::getModuleName | ( | ) | const |
Retrieves the name of the module to which these settings belong.
Definition at line 39 of file ModuleSettings.cpp.
|
protected |
Retrieves the option with the given long name.
If no such option exists, an exception is thrown.
| longName | The long name of the option to retrieve. |
Definition at line 32 of file ModuleSettings.cpp.
|
protected |
Retrieves the option with the given long name.
If no such option exists, an exception is thrown.
| longName | The long name of the option to retrieve. |
Definition at line 25 of file ModuleSettings.cpp.
| std::vector< std::shared_ptr< Option > > const & storm::settings::modules::ModuleSettings::getOptions | ( | ) | const |
Retrieves the options of this module.
Definition at line 21 of file ModuleSettings.cpp.
| uint_fast64_t storm::settings::modules::ModuleSettings::getPrintLengthOfLongestOption | ( | bool | includeAdvanced | ) | const |
Retrieves the (print) length of the longest option.
| includeAdvanced | if set, also includes options flagged as advanced. |
Definition at line 56 of file ModuleSettings.cpp.
|
protected |
Retrieves whether the option with the given name was set.
| The | name of the option. |
Definition at line 43 of file ModuleSettings.cpp.
| void storm::settings::modules::ModuleSettings::restoreDefaults | ( | ) |
Restores the default values for all arguments of all options.
Definition at line 66 of file ModuleSettings.cpp.