From 7881512a17fd4bf0bc4abe95c47007f34adafb3f Mon Sep 17 00:00:00 2001 From: Tim Quatmann Date: Mon, 6 May 2019 18:21:08 +0200 Subject: [PATCH] Removed ConstraintType definition out of RationalFunctionAdapter to make things more consistent. --- src/storm/adapters/RationalFunctionAdapter.h | 10 +--------- src/storm/analysis/GraphConditions.h | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/storm/adapters/RationalFunctionAdapter.h b/src/storm/adapters/RationalFunctionAdapter.h index 39490d81e..e41869b5b 100644 --- a/src/storm/adapters/RationalFunctionAdapter.h +++ b/src/storm/adapters/RationalFunctionAdapter.h @@ -78,15 +78,7 @@ namespace storm { typedef carl::RationalFunction RationalFunction; typedef carl::Interval Interval; - - template - struct ConstraintType { - typedef void* val; - }; - template - struct ConstraintType::value>::type> { - typedef carl::Formula val; - }; + typedef carl::Formula RationalFunctionConstraint; } diff --git a/src/storm/analysis/GraphConditions.h b/src/storm/analysis/GraphConditions.h index 04b5d7774..f9f119fc1 100644 --- a/src/storm/analysis/GraphConditions.h +++ b/src/storm/analysis/GraphConditions.h @@ -8,6 +8,17 @@ namespace storm { namespace analysis { + + template + struct ConstraintType { + typedef void* val; + }; + + template + struct ConstraintType::value>::type> { + typedef storm::RationalFunctionConstraint val; + }; + /** * Class to collect constraints on parametric Markov chains. */ @@ -15,11 +26,11 @@ namespace storm { class ConstraintCollector { private: // A set of constraints that says that the DTMC actually has valid probability distributions in all states. - std::unordered_set::val> wellformedConstraintSet; + std::unordered_set::val> wellformedConstraintSet; // A set of constraints that makes sure that the underlying graph of the model does not change depending // on the parameter values. - std::unordered_set::val> graphPreservingConstraintSet; + std::unordered_set::val> graphPreservingConstraintSet; // A set of variables std::set variableSet;