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