Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SetInformationFromCheckTask.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace storm {
6namespace modelchecker {
7namespace helper {
8
12template<typename HelperType, typename FormulaType, typename ModelType>
15 ModelType const& model) {
16 // Relevancy of initial states.
17 if (checkTask.isOnlyInitialStatesRelevantSet()) {
18 helper.setRelevantStates(model.getInitialStates());
19 }
20 // Value threshold to which the result will be compared
21 if (checkTask.isBoundSet()) {
22 helper.setValueThreshold(checkTask.getBoundComparisonType(), checkTask.getBoundThreshold());
23 }
24 // Optimization direction
25 if (checkTask.isOptimizationDirectionSet()) {
26 helper.setOptimizationDirection(checkTask.getOptimizationDirection());
27 }
28 // Scheduler Production
29 helper.setProduceScheduler(checkTask.isProduceSchedulersSet());
30
31 // Qualitative flag
32 helper.setQualitative(checkTask.isQualitativeSet());
33}
34
38template<typename HelperType, typename FormulaType, typename ModelType>
40 ModelType const& model) {
41 // Relevancy of initial states.
42 if (checkTask.isOnlyInitialStatesRelevantSet()) {
43 helper.setRelevantStates(model.getInitialStates());
44 }
45 // Value threshold to which the result will be compared
46 if (checkTask.isBoundSet()) {
47 helper.setValueThreshold(checkTask.getBoundComparisonType(), checkTask.getBoundThreshold());
48 }
49
50 // Qualitative flag
51 helper.setQualitative(checkTask.isQualitativeSet());
52}
53} // namespace helper
54} // namespace modelchecker
55} // namespace storm
bool isBoundSet() const
Retrieves whether there is a bound with which the values for the states will be compared.
Definition CheckTask.h:219
ValueType getBoundThreshold() const
Retrieves the value of the bound (if set).
Definition CheckTask.h:226
storm::logic::ComparisonType const & getBoundComparisonType() const
Retrieves the comparison type of the bound (if set).
Definition CheckTask.h:235
bool isOptimizationDirectionSet() const
Retrieves whether an optimization direction was set.
Definition CheckTask.h:147
bool isQualitativeSet() const
Retrieves whether the computation only needs to be performed qualitatively, because the values will o...
Definition CheckTask.h:257
bool isProduceSchedulersSet() const
Retrieves whether scheduler(s) are to be produced (if supported).
Definition CheckTask.h:279
storm::OptimizationDirection const & getOptimizationDirection() const
Retrieves the optimization direction (if set).
Definition CheckTask.h:154
bool isOnlyInitialStatesRelevantSet() const
Retrieves whether only the initial states are relevant in the computation.
Definition CheckTask.h:204
void setInformationFromCheckTaskDeterministic(HelperType &helper, storm::modelchecker::CheckTask< FormulaType, typename ModelType::ValueType > const &checkTask, ModelType const &model)
Forwards relevant information stored in the given CheckTask to the given helper.
void setInformationFromCheckTaskNondeterministic(HelperType &helper, storm::modelchecker::CheckTask< FormulaType, typename ModelType::ValueType > const &checkTask, ModelType const &model)
Forwards relevant information stored in the given CheckTask to the given helper.
LabParser.cpp.
Definition cli.cpp:18