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.
37 lines
1.2 KiB
37 lines
1.2 KiB
#ifndef STORM_LOGIC_BINARYBOOLEANSTATEFORMULA_H_
|
|
#define STORM_LOGIC_BINARYBOOLEANSTATEFORMULA_H_
|
|
|
|
#include <map>
|
|
|
|
#include "storm/logic/BinaryStateFormula.h"
|
|
|
|
namespace storm {
|
|
namespace logic {
|
|
class BinaryBooleanStateFormula : public BinaryStateFormula {
|
|
public:
|
|
enum class OperatorType {And, Or};
|
|
|
|
BinaryBooleanStateFormula(OperatorType operatorType, std::shared_ptr<Formula const> const& leftSubformula, std::shared_ptr<Formula const> const& rightSubformula);
|
|
|
|
virtual ~BinaryBooleanStateFormula() {
|
|
// Intentionally left empty.
|
|
};
|
|
|
|
virtual bool isBinaryBooleanStateFormula() const override;
|
|
|
|
virtual boost::any accept(FormulaVisitor const& visitor, boost::any const& data) const override;
|
|
|
|
OperatorType getOperator() const;
|
|
|
|
virtual bool isAnd() const;
|
|
virtual bool isOr() const;
|
|
|
|
virtual std::ostream& writeToStream(std::ostream& out) const override;
|
|
|
|
private:
|
|
OperatorType operatorType;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* STORM_LOGIC_BINARYBOOLEANSTATEFORMULA_H_ */
|