Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SetInformationFromOtherHelper.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace storm {
6namespace modelchecker {
7namespace helper {
8
12template<typename TargetHelperType, typename SourceHelperType>
14 TargetHelperType& targetHelper, SourceHelperType const& sourceHelperType,
15 std::function<typename TargetHelperType::StateSet(typename SourceHelperType::StateSet const&)> const& stateSetTransformer) {
16 // Relevancy of initial states.
17 if (sourceHelperType.hasRelevantStates()) {
18 targetHelper.setRelevantStates(stateSetTransformer(sourceHelperType.getRelevantStates()));
19 }
20 // Value threshold to which the result will be compared
21 if (sourceHelperType.isValueThresholdSet()) {
22 targetHelper.setValueThreshold(sourceHelperType.getValueThresholdComparisonType(),
23 storm::utility::convertNumber<typename TargetHelperType::ValueType>(sourceHelperType.getValueThresholdValue()));
24 }
25 // Optimization direction
26 if (sourceHelperType.isOptimizationDirectionSet()) {
27 targetHelper.setOptimizationDirection(sourceHelperType.getOptimizationDirection());
28 }
29 // Scheduler Production
30 targetHelper.setProduceScheduler(sourceHelperType.isProduceSchedulerSet());
31}
32
36template<typename TargetHelperType, typename SourceHelperType>
38 TargetHelperType& targetHelper, SourceHelperType const& sourceHelperType,
39 std::function<typename TargetHelperType::StateSet(typename SourceHelperType::StateSet const&)> const& stateSetTransformer) {
40 // Relevancy of initial states.
41 if (sourceHelperType.hasRelevantStates()) {
42 targetHelper.setRelevantStates(stateSetTransformer(sourceHelperType.getRelevantStates()));
43 }
44 // Value threshold to which the result will be compared
45 if (sourceHelperType.isValueThresholdSet()) {
46 targetHelper.setValueThreshold(sourceHelperType.getValueThresholdComparisonType(),
47 storm::utility::convertNumber<typename TargetHelperType::ValueType>(sourceHelperType.getValueThresholdValue()));
48 }
49}
50} // namespace helper
51} // namespace modelchecker
52} // namespace storm
void setInformationFromOtherHelperNondeterministic(TargetHelperType &targetHelper, SourceHelperType const &sourceHelperType, std::function< typename TargetHelperType::StateSet(typename SourceHelperType::StateSet const &)> const &stateSetTransformer)
Forwards relevant information stored in another helper to the given helper.
void setInformationFromOtherHelperDeterministic(TargetHelperType &targetHelper, SourceHelperType const &sourceHelperType, std::function< typename TargetHelperType::StateSet(typename SourceHelperType::StateSet const &)> const &stateSetTransformer)
Forwards relevant information stored in another helper to the given helper.
LabParser.cpp.
Definition cli.cpp:18