Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
BinaryBooleanFunctionExpression.h
Go to the documentation of this file.
1#ifndef STORM_STORAGE_EXPRESSIONS_BINARYBOOLEANFUNCTIONEXPRESSION_H_
2#define STORM_STORAGE_EXPRESSIONS_BINARYBOOLEANFUNCTIONEXPRESSION_H_
3
6
7namespace storm {
8namespace expressions {
10 public:
14 enum class OperatorType { And, Or, Xor, Implies, Iff };
15
25 BinaryBooleanFunctionExpression(ExpressionManager const& manager, Type const& type, std::shared_ptr<BaseExpression const> const& firstOperand,
26 std::shared_ptr<BaseExpression const> const& secondOperand, OperatorType operatorType);
27
28 // Instantiate constructors and assignments with their default implementations.
33
35
36 // Override base class methods.
37 virtual storm::expressions::OperatorType getOperator() const override;
38 virtual bool evaluateAsBool(Valuation const* valuation = nullptr) const override;
39 virtual std::shared_ptr<BaseExpression const> simplify() const override;
40 virtual boost::any accept(ExpressionVisitor& visitor, boost::any const& data) const override;
41 virtual bool isBinaryBooleanFunctionExpression() const override;
42
49
50 protected:
51 // Override base class method.
52 virtual void printToStream(std::ostream& stream) const override;
53
54 private:
55 // The operator of the expression.
56 OperatorType operatorType;
57};
58} // namespace expressions
59} // namespace storm
60
61#endif /* STORM_STORAGE_EXPRESSIONS_BINARYBOOLEANFUNCTIONEXPRESSION_H_ */
BinaryBooleanFunctionExpression & operator=(BinaryBooleanFunctionExpression &&)=delete
virtual boost::any accept(ExpressionVisitor &visitor, boost::any const &data) const override
Accepts the given visitor by calling its visit method.
virtual bool evaluateAsBool(Valuation const *valuation=nullptr) const override
Evaluates the expression under the valuation of unknowns (variables and constants) given by the valua...
BinaryBooleanFunctionExpression & operator=(BinaryBooleanFunctionExpression const &other)=delete
virtual std::shared_ptr< BaseExpression const > simplify() const override
Simplifies the expression according to some simple rules.
OperatorType getOperatorType() const
Retrieves the operator associated with the expression.
BinaryBooleanFunctionExpression(BinaryBooleanFunctionExpression const &other)=default
BinaryBooleanFunctionExpression(BinaryBooleanFunctionExpression &&)=default
OperatorType
An enum type specifying the different operators applicable.
virtual void printToStream(std::ostream &stream) const override
Prints the expression to the given stream.
virtual storm::expressions::OperatorType getOperator() const override
Retrieves the operator of a function application.
The base class of all binary expressions.
This class is responsible for managing a set of typed variables and all expressions using these varia...
The base class of all valuations of variables.
Definition Valuation.h:16
LabParser.cpp.
Definition cli.cpp:18