From b1498ef0bb61056273d0f697f166d9d84e70af6e Mon Sep 17 00:00:00 2001 From: gereon Date: Fri, 22 Feb 2013 15:11:36 +0100 Subject: [PATCH] moved model from specific model checkers to AbstractModelChecker --- src/modelchecker/AbstractModelChecker.h | 23 +++++++++++++++++++ src/modelchecker/DtmcPrctlModelChecker.h | 21 +++++++++++------ src/modelchecker/GmmxxDtmcPrctlModelChecker.h | 6 +++-- src/modelchecker/MdpPrctlModelChecker.h | 23 +++++++++++-------- 4 files changed, 55 insertions(+), 18 deletions(-) diff --git a/src/modelchecker/AbstractModelChecker.h b/src/modelchecker/AbstractModelChecker.h index 244b35df1..698aaa466 100644 --- a/src/modelchecker/AbstractModelChecker.h +++ b/src/modelchecker/AbstractModelChecker.h @@ -15,6 +15,7 @@ template class AbstractModelChecker; #include "src/exceptions/InvalidPropertyException.h" #include "src/formula/Formulas.h" #include "src/storage/BitVector.h" +#include "src/models/AbstractModel.h" #include @@ -50,6 +51,15 @@ class AbstractModelChecker : public virtual storm::formula::IInstantaneousRewardModelChecker { public: + explicit AbstractModelChecker(storm::models::AbstractModel& model) + : model(model) { + // Nothing to do here... + } + + explicit AbstractModelChecker(AbstractModelChecker* modelChecker) + : model(modelChecker->model) { + } + template