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.
56 lines
1.3 KiB
56 lines
1.3 KiB
/*
|
|
* Abstractformula.h
|
|
*
|
|
* Created on: 19.10.2012
|
|
* Author: Thomas Heinemann
|
|
*/
|
|
|
|
#ifndef STORM_FORMULA_AbstractFORMULA_H_
|
|
#define STORM_FORMULA_AbstractFORMULA_H_
|
|
|
|
#include <string>
|
|
|
|
namespace storm { namespace formula {
|
|
template <class T> class AbstractFormula;
|
|
}}
|
|
|
|
#include "src/modelChecker/AbstractModelChecker.h"
|
|
#include "src/formula/AbstractFormulaChecker.h"
|
|
|
|
namespace storm {
|
|
namespace formula {
|
|
|
|
|
|
//abstract
|
|
/*!
|
|
* @brief
|
|
* Abstract base class for Abstract formulas in general.
|
|
*
|
|
* @attention This class is abstract.
|
|
* @note Formula classes do not have copy constructors. The parameters of the constructors are usually the subtrees, so
|
|
* the syntax conflicts with copy constructors for unary operators. To produce an identical object, the classes
|
|
* AbstractPathFormula and AbstractStateFormula offer the method clone().
|
|
*/
|
|
template <class T>
|
|
class AbstractFormula {
|
|
|
|
public:
|
|
/*!
|
|
* virtual destructor
|
|
*/
|
|
virtual ~AbstractFormula() { }
|
|
|
|
/*!
|
|
* @note This function is not implemented in this class.
|
|
* @returns a string representation of the formula
|
|
*/
|
|
virtual std::string toString() const = 0;
|
|
|
|
virtual bool conforms(const AbstractFormulaChecker<T>& checker) const = 0;
|
|
};
|
|
|
|
} //namespace formula
|
|
|
|
} //namespace storm
|
|
|
|
#endif /* STORM_FORMULA_AbstractFORMULA_H_ */
|