diff --git a/src/storm/modelchecker/results/CheckResult.cpp b/src/storm/modelchecker/results/CheckResult.cpp index 9155057d3..26eb24946 100644 --- a/src/storm/modelchecker/results/CheckResult.cpp +++ b/src/storm/modelchecker/results/CheckResult.cpp @@ -162,6 +162,10 @@ namespace storm { SymbolicParetoCurveCheckResult const& CheckResult::asSymbolicParetoCurveCheckResult() const { return dynamic_cast const&>(*this); } + + bool CheckResult::hasScheduler() const { + return false; + } // Explicitly instantiate the template functions. template QuantitativeCheckResult& CheckResult::asQuantitativeCheckResult(); diff --git a/src/storm/modelchecker/results/CheckResult.h b/src/storm/modelchecker/results/CheckResult.h index 4edd2cb19..740a8269d 100644 --- a/src/storm/modelchecker/results/CheckResult.h +++ b/src/storm/modelchecker/results/CheckResult.h @@ -111,7 +111,9 @@ namespace storm { template SymbolicParetoCurveCheckResult const& asSymbolicParetoCurveCheckResult() const; - + + virtual bool hasScheduler() const; + virtual std::ostream& writeToStream(std::ostream& out) const = 0; }; diff --git a/src/storm/modelchecker/results/ExplicitQuantitativeCheckResult.h b/src/storm/modelchecker/results/ExplicitQuantitativeCheckResult.h index 131cf0cea..57be3266f 100644 --- a/src/storm/modelchecker/results/ExplicitQuantitativeCheckResult.h +++ b/src/storm/modelchecker/results/ExplicitQuantitativeCheckResult.h @@ -65,7 +65,7 @@ namespace storm { virtual ValueType average() const override; virtual ValueType sum() const override; - bool hasScheduler() const; + virtual bool hasScheduler() const override; void setScheduler(std::unique_ptr>&& scheduler); storm::storage::Scheduler const& getScheduler() const; storm::storage::Scheduler& getScheduler(); diff --git a/src/storm/storage/Scheduler.h b/src/storm/storage/Scheduler.h index b51e308b9..f3777cf55 100644 --- a/src/storm/storage/Scheduler.h +++ b/src/storm/storage/Scheduler.h @@ -44,10 +44,10 @@ namespace storm { void clearChoice(uint_fast64_t modelState, uint_fast64_t memoryState = 0); /*! - * Sets the choice defined by the scheduler for the given model and memory state. + * Gets the choice defined by the scheduler for the given model and memory state. * - * @param state The state for which to set the choice. - * @param choice The choice to set for the given state. + * @param state The state for which to get the choice. + * @param memoryState the memory state which we consider. */ SchedulerChoice const& getChoice(uint_fast64_t modelState, uint_fast64_t memoryState = 0) const;