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.
33 lines
1.1 KiB
33 lines
1.1 KiB
#include "src/logic/GloballyFormula.h"
|
|
|
|
#include "src/logic/FormulaVisitor.h"
|
|
|
|
namespace storm {
|
|
namespace logic {
|
|
GloballyFormula::GloballyFormula(std::shared_ptr<Formula const> 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<Formula> GloballyFormula::substitute(std::map<storm::expressions::Variable, storm::expressions::Expression> const& substitution) const {
|
|
return std::make_shared<GloballyFormula>(this->getSubformula().substitute(substitution));
|
|
}
|
|
|
|
std::ostream& GloballyFormula::writeToStream(std::ostream& out) const {
|
|
out << "G ";
|
|
this->getSubformula().writeToStream(out);
|
|
return out;
|
|
}
|
|
}
|
|
}
|