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.
 
 
 
 

35 lines
1.1 KiB

#ifndef STORM_LOGIC_BINARYBOOLEANSTATEFORMULA_H_
#define STORM_LOGIC_BINARYBOOLEANSTATEFORMULA_H_
#include "src/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 bool isPropositionalFormula() 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_ */