#ifndef STORM_MODELCHECKER_SPARSESMGRPATLMODELCHECKER_H_ #define STORM_MODELCHECKER_SPARSESMGRPATLMODELCHECKER_H_ #include "storm/modelchecker/propositional/SparsePropositionalModelChecker.h" #include "storm/models/sparse/Smg.h" #include "storm/utility/solver.h" #include "storm/solver/LinearEquationSolver.h" #include "storm/storage/StronglyConnectedComponent.h" #include "storm/storage/BitVector.h" namespace storm { namespace modelchecker { template class SparseSmgRpatlModelChecker : public SparsePropositionalModelChecker { public: typedef typename SparseSmgModelType::ValueType ValueType; typedef typename SparseSmgModelType::RewardModelType RewardModelType; explicit SparseSmgRpatlModelChecker(SparseSmgModelType const& model); /*! * Returns false, if this task can certainly not be handled by this model checker (independent of the concrete model). * @param requiresSingleInitialState if not nullptr, this flag is set to true iff checking this formula requires a model with a single initial state */ static bool canHandleStatic(CheckTask const& checkTask, bool* requiresSingleInitialState = nullptr); // The implemented methods of the AbstractModelChecker interface. bool canHandle(CheckTask const& checkTask) const override; std::unique_ptr checkGameFormula(Environment const& env, CheckTask const& checkTask) override; std::unique_ptr checkProbabilityOperatorFormula(Environment const& env, CheckTask const& checkTask) override; std::unique_ptr checkRewardOperatorFormula(Environment const& env, CheckTask const& checkTask) override; std::unique_ptr checkLongRunAverageOperatorFormula(Environment const& env, CheckTask const& checkTask) override; std::unique_ptr computeProbabilities(Environment const& env, CheckTask const& checkTask) override; std::unique_ptr computeRewards(Environment const& env, storm::logic::RewardMeasureType rewardMeasureType, CheckTask const& checkTask) override; std::unique_ptr computeUntilProbabilities(Environment const& env, CheckTask const& checkTask) override; std::unique_ptr computeGloballyProbabilities(Environment const& env, CheckTask const& checkTask) override; std::unique_ptr computeLongRunAverageProbabilities(Environment const& env, CheckTask const& checkTask) override; std::unique_ptr computeLongRunAverageRewards(Environment const& env, storm::logic::RewardMeasureType rewardMeasureType, CheckTask const& checkTask) override; //void coalitionIndicator(Environment& env, CheckTask const& checkTask); private: storm::storage::BitVector statesOfCoalition; }; } // namespace modelchecker } // namespace storm #endif /* STORM_MODELCHECKER_SPARSESMGRPATLMODELCHECKER_H_ */