Browse Source

gameForumlas now gather referenced variables

tempestpy_adaptions
Stefan Pranger 4 years ago
parent
commit
1470d65586
  1. 4
      src/storm/logic/GameFormula.cpp
  2. 2
      src/storm/logic/GameFormula.h

4
src/storm/logic/GameFormula.cpp

@ -20,6 +20,10 @@ namespace storm {
return coalition; return coalition;
} }
void GameFormula::gatherReferencedRewardModels(std::set<std::string>& referencedRewardModels) const {
this->getSubformula().gatherReferencedRewardModels(referencedRewardModels);
}
boost::any GameFormula::accept(FormulaVisitor const& visitor, boost::any const& data) const { boost::any GameFormula::accept(FormulaVisitor const& visitor, boost::any const& data) const {
return visitor.visit(*this, data); return visitor.visit(*this, data);
} }

2
src/storm/logic/GameFormula.h

@ -20,6 +20,8 @@ namespace storm {
Formula const& getSubformula() const; Formula const& getSubformula() const;
Coalition getCoalition() const; Coalition getCoalition() const;
virtual void gatherReferencedRewardModels(std::set<std::string>& referencedRewardModels) const;
boost::any accept(FormulaVisitor const& visitor, boost::any const& data) const; boost::any accept(FormulaVisitor const& visitor, boost::any const& data) const;
std::ostream& writeToStream(std::ostream& out) const; std::ostream& writeToStream(std::ostream& out) const;

Loading…
Cancel
Save