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.
32 lines
1.2 KiB
32 lines
1.2 KiB
#include "src/logic/UnaryStateFormula.h"
|
|
|
|
#include "src/logic/FormulaVisitor.h"
|
|
|
|
namespace storm {
|
|
namespace logic {
|
|
UnaryStateFormula::UnaryStateFormula(std::shared_ptr<Formula const> subformula) : subformula(subformula) {
|
|
// Intentionally left empty.
|
|
}
|
|
|
|
bool UnaryStateFormula::isUnaryStateFormula() const {
|
|
return true;
|
|
}
|
|
|
|
Formula const& UnaryStateFormula::getSubformula() const {
|
|
return *subformula;
|
|
}
|
|
|
|
void UnaryStateFormula::gatherAtomicExpressionFormulas(std::vector<std::shared_ptr<AtomicExpressionFormula const>>& atomicExpressionFormulas) const {
|
|
this->getSubformula().gatherAtomicExpressionFormulas(atomicExpressionFormulas);
|
|
}
|
|
|
|
void UnaryStateFormula::gatherAtomicLabelFormulas(std::vector<std::shared_ptr<AtomicLabelFormula const>>& atomicLabelFormulas) const {
|
|
this->getSubformula().gatherAtomicLabelFormulas(atomicLabelFormulas);
|
|
}
|
|
|
|
void UnaryStateFormula::gatherReferencedRewardModels(std::set<std::string>& referencedRewardModels) const {
|
|
this->getSubformula().gatherReferencedRewardModels(referencedRewardModels);
|
|
}
|
|
|
|
}
|
|
}
|