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.
29 lines
1.1 KiB
29 lines
1.1 KiB
#include "storm/logic/ProbabilityOperatorFormula.h"
|
|
|
|
#include "storm/logic/FormulaVisitor.h"
|
|
|
|
#include "storm/utility/macros.h"
|
|
#include "storm/exceptions/InvalidPropertyException.h"
|
|
|
|
namespace storm {
|
|
namespace logic {
|
|
ProbabilityOperatorFormula::ProbabilityOperatorFormula(std::shared_ptr<Formula const> const& subformula, OperatorInformation const& operatorInformation) : OperatorFormula(subformula, operatorInformation) {
|
|
// Intentionally left empty.
|
|
}
|
|
|
|
bool ProbabilityOperatorFormula::isProbabilityOperatorFormula() const {
|
|
return true;
|
|
}
|
|
|
|
boost::any ProbabilityOperatorFormula::accept(FormulaVisitor const& visitor, boost::any const& data) const {
|
|
return visitor.visit(*this, data);
|
|
}
|
|
|
|
std::ostream& ProbabilityOperatorFormula::writeToStream(std::ostream& out, bool /* allowParentheses */) const {
|
|
// No parentheses necessary
|
|
out << "P";
|
|
OperatorFormula::writeToStream(out, false);
|
|
return out;
|
|
}
|
|
}
|
|
}
|