You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.0 KiB
62 lines
2.0 KiB
#ifndef STORM_PROPERTIES_CSL_ABSTRACTPATHFORMULA_H_
|
|
#define STORM_PROPERTIES_CSL_ABSTRACTPATHFORMULA_H_
|
|
|
|
#include "src/properties/csl/AbstractCslFormula.h"
|
|
#include "src/modelchecker/csl/ForwardDeclarations.h"
|
|
|
|
#include <vector>
|
|
#include <iostream>
|
|
#include <typeinfo>
|
|
|
|
namespace storm {
|
|
namespace properties {
|
|
namespace csl {
|
|
|
|
/*!
|
|
* Abstract base class for Csl path formulas.
|
|
*
|
|
* @note Differing from the formal definitions of PRCTL a path formula may be the root of a PRCTL formula.
|
|
* The result of a modelchecking process on such a formula is a vector representing the satisfaction probabilities for each state of the model.
|
|
*/
|
|
template <class T>
|
|
class AbstractPathFormula : public virtual storm::properties::csl::AbstractCslFormula<T> {
|
|
|
|
public:
|
|
|
|
/*!
|
|
* The virtual destructor.
|
|
*/
|
|
virtual ~AbstractPathFormula() {
|
|
// Intentionally left empty
|
|
}
|
|
|
|
/*!
|
|
* Clones the called object.
|
|
*
|
|
* Performs a "deep copy", i.e. the subtrees of the new object are clones of the original ones.
|
|
*
|
|
* @note This function is not implemented in this class.
|
|
*
|
|
* @returns A deep copy of the called object.
|
|
*/
|
|
virtual std::shared_ptr<AbstractPathFormula<T>> clone() const = 0;
|
|
|
|
/*!
|
|
* Calls the model checker to check this formula.
|
|
* Needed to infer the correct type of formula class.
|
|
*
|
|
* @note This function should only be called in a generic check function of a model checker class. For other uses,
|
|
* the methods of the model checker should be used.
|
|
*
|
|
* @note This function is not implemented in this class.
|
|
*
|
|
* @returns A vector indicating the probability that the formula holds for each state.
|
|
*/
|
|
virtual std::vector<T> check(storm::modelchecker::csl::AbstractModelChecker<T> const & modelChecker, bool qualitative) const = 0;
|
|
};
|
|
|
|
} // namespace csl
|
|
} // namespace properties
|
|
} // namespace storm
|
|
|
|
#endif /* STORM_PROPERTIES_CSL_ABSTRACTPATHFORMULA_H_ */
|