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.
30 lines
1007 B
30 lines
1007 B
#include "src/logic/UntilFormula.h"
|
|
|
|
#include "src/logic/FormulaVisitor.h"
|
|
|
|
namespace storm {
|
|
namespace logic {
|
|
UntilFormula::UntilFormula(std::shared_ptr<Formula const> const& leftSubformula, std::shared_ptr<Formula const> const& rightSubformula) : BinaryPathFormula(leftSubformula, rightSubformula) {
|
|
// Intentionally left empty.
|
|
}
|
|
|
|
bool UntilFormula::isUntilFormula() const {
|
|
return true;
|
|
}
|
|
|
|
bool UntilFormula::isProbabilityPathFormula() const {
|
|
return true;
|
|
}
|
|
|
|
boost::any UntilFormula::accept(FormulaVisitor const& visitor, boost::any const& data) const {
|
|
return visitor.visit(*this, data);
|
|
}
|
|
|
|
std::ostream& UntilFormula::writeToStream(std::ostream& out) const {
|
|
this->getLeftSubformula().writeToStream(out);
|
|
out << " U ";
|
|
this->getRightSubformula().writeToStream(out);
|
|
return out;
|
|
}
|
|
}
|
|
}
|