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
862 B

#include "src/logic/NextFormula.h"
#include "src/logic/FormulaVisitor.h"
namespace storm {
namespace logic {
NextFormula::NextFormula(std::shared_ptr<Formula const> const& subformula) : UnaryPathFormula(subformula) {
// Intentionally left empty.
}
bool NextFormula::isNextFormula() const {
return true;
}
bool NextFormula::isProbabilityPathFormula() const {
return true;
}
boost::any NextFormula::accept(FormulaVisitor const& visitor, boost::any const& data) const {
return visitor.visit(*this, data);
}
std::ostream& NextFormula::writeToStream(std::ostream& out) const {
out << "X ";
this->getSubformula().writeToStream(out);
return out;
}
}
}