Browse Source
Introduced a utility function that sets information from a CheckTask to a helper.
main
Introduced a utility function that sets information from a CheckTask to a helper.
main
2 changed files with 37 additions and 5 deletions
-
31src/storm/modelchecker/helper/utility/SetInformationFromCheckTask.h
-
9src/storm/modelchecker/prctl/SparseMdpPrctlModelChecker.cpp
@ -0,0 +1,31 @@ |
|||||
|
#pragma once |
||||
|
|
||||
|
#include "storm/modelchecker/CheckTask.h" |
||||
|
|
||||
|
namespace storm { |
||||
|
namespace modelchecker { |
||||
|
namespace helper { |
||||
|
|
||||
|
/*! |
||||
|
* Forwards relevant information stored in the given CheckTask to the given helper |
||||
|
*/ |
||||
|
template <typename HelperType, typename FormulaType, typename ModelType> |
||||
|
void setInformationFromCheckTaskNondeterministic(HelperType& helper, storm::modelchecker::CheckTask<FormulaType, typename ModelType::ValueType> const& checkTask, ModelType const& model) { |
||||
|
// Relevancy of initial states. |
||||
|
if (checkTask.isOnlyInitialStatesRelevantSet()) { |
||||
|
helper.setRelevantStates(model.getInitialStates()); |
||||
|
} |
||||
|
// Value threshold to which the result will be compared |
||||
|
if (checkTask.isBoundSet()) { |
||||
|
helper.setValueThreshold(checkTask.getBoundComparisonType(), checkTask.getBoundThreshold()); |
||||
|
} |
||||
|
// Optimization direction |
||||
|
if (checkTask.isOptimizationDirectionSet()) { |
||||
|
helper.setOptimizationDirection(checkTask.getOptimizationDirection()); |
||||
|
} |
||||
|
// Scheduler Production |
||||
|
helper.setProduceScheduler(checkTask.isProduceSchedulersSet()); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue