6 changed files with 71 additions and 3 deletions
-
2src/storm-dft/settings/DftSettings.cpp
-
5src/storm-pars/settings/ParsSettings.cpp
-
1src/storm/modelchecker/prctl/helper/SparseDtmcPrctlHelper.cpp
-
2src/storm/settings/SettingsManager.cpp
-
28src/storm/settings/modules/ModelCheckerSettings.cpp
-
36src/storm/settings/modules/ModelCheckerSettings.h
@ -0,0 +1,28 @@ |
|||||
|
#include "storm/settings/modules/ModelCheckerSettings.h"
|
||||
|
|
||||
|
#include "storm/settings/SettingsManager.h"
|
||||
|
#include "storm/settings/SettingMemento.h"
|
||||
|
#include "storm/settings/Option.h"
|
||||
|
#include "storm/settings/OptionBuilder.h"
|
||||
|
#include "storm/settings/ArgumentBuilder.h"
|
||||
|
#include "storm/settings/Argument.h"
|
||||
|
|
||||
|
|
||||
|
namespace storm { |
||||
|
namespace settings { |
||||
|
namespace modules { |
||||
|
|
||||
|
const std::string GeneralSettings::moduleName = "modelchecker"; |
||||
|
const std::string GeneralSettings::filterRewZeroOptionName = "filterrewzero"; |
||||
|
|
||||
|
ModelCheckerSettings::ModelCheckerSettings() : ModuleSettings(moduleName) { |
||||
|
this->addOption(storm::settings::OptionBuilder(moduleName, filterRewZeroOptionName, false, "If set, states with reward zero are filtered out, potentially reducing the size of the equation system").build()); |
||||
|
} |
||||
|
|
||||
|
bool ModelCheckerSettings::isFilterRewZeroSet() const { |
||||
|
return this->getOption(filterRewZeroOptionName).getHasOptionBeenSet(); |
||||
|
} |
||||
|
|
||||
|
} // namespace modules
|
||||
|
} // namespace settings
|
||||
|
} // namespace storm
|
@ -0,0 +1,36 @@ |
|||||
|
#pragma once |
||||
|
|
||||
|
#include "storm-config.h" |
||||
|
#include "storm/settings/modules/ModuleSettings.h" |
||||
|
|
||||
|
#include "storm/builder/ExplorationOrder.h" |
||||
|
|
||||
|
namespace storm { |
||||
|
namespace settings { |
||||
|
namespace modules { |
||||
|
|
||||
|
/*! |
||||
|
* This class represents the general settings. |
||||
|
*/ |
||||
|
class ModelCheckerSettings : public ModuleSettings { |
||||
|
public: |
||||
|
|
||||
|
/*! |
||||
|
* Creates a new set of general settings. |
||||
|
*/ |
||||
|
ModelCheckerSettings(); |
||||
|
|
||||
|
bool isFilterRewZeroSet() const; |
||||
|
|
||||
|
// The name of the module. |
||||
|
static const std::string moduleName; |
||||
|
|
||||
|
private: |
||||
|
// Define the string names of the options as constants. |
||||
|
static const std::string filterRewZeroOptionName; |
||||
|
}; |
||||
|
|
||||
|
} // namespace modules |
||||
|
} // namespace settings |
||||
|
} // namespace storm |
||||
|
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue