/* * AbstractModelChecker.h * * Created on: 22.10.2012 * Author: Thomas Heinemann */ #ifndef STORM_MODELCHECKER_CSL_ABSTRACTMODELCHECKER_H_ #define STORM_MODELCHECKER_CSL_ABSTRACTMODELCHECKER_H_ #include #include "src/exceptions/InvalidPropertyException.h" #include "src/formula/Csl.h" #include "src/storage/BitVector.h" #include "src/models/AbstractModel.h" #include "log4cplus/logger.h" #include "log4cplus/loggingmacros.h" #include extern log4cplus::Logger logger; namespace storm { namespace modelchecker { namespace csl { /*! * @brief * (Abstract) interface for all model checker classes. * * This class provides basic functions that are common to all model checkers (i.e. subclasses). It mainly declares * abstract methods that are implemented in the concrete subclasses, but also covers checking procedures that are common * to all model checkers for state-based models. */ template class AbstractModelChecker : // A list of interfaces the model checker supports. Typically, for each of the interfaces, a check method needs to // be implemented that performs the corresponding check. public virtual storm::property::csl::IApModelChecker, public virtual storm::property::csl::IAndModelChecker, public virtual storm::property::csl::IOrModelChecker, public virtual storm::property::csl::INotModelChecker, public virtual storm::property::csl::IUntilModelChecker, public virtual storm::property::csl::IEventuallyModelChecker, public virtual storm::property::csl::IGloballyModelChecker, public virtual storm::property::csl::INextModelChecker, public virtual storm::property::csl::ITimeBoundedUntilModelChecker, public virtual storm::property::csl::ITimeBoundedEventuallyModelChecker, public virtual storm::property::csl::IProbabilisticBoundOperatorModelChecker { public: /*! * Constructs an AbstractModelChecker with the given model. */ explicit AbstractModelChecker(storm::models::AbstractModel const& model) : minimumOperatorStack(), model(model) { // Intentionally left empty. } /*! * Copy constructs an AbstractModelChecker from the given model checker. In particular, this means that the newly * constructed model checker will have the model of the given model checker as its associated model. */ explicit AbstractModelChecker(AbstractModelChecker const& modelchecker) : minimumOperatorStack(), model(modelchecker.model) { // Intentionally left empty. } /*! * Virtual destructor. Needs to be virtual, because this class has virtual methods. */ virtual ~AbstractModelChecker() { // Intentionally left empty. } /*! * Returns a pointer to the model checker object that is of the requested type as given by the template parameters. * @returns A pointer to the model checker object that is of the requested type as given by the template parameters. * If the model checker is not of the requested type, type casting will fail and result in an exception. */ template