Browse Source

added casting getter for gameFormula

tempestpy_adaptions
Stefan Pranger 4 years ago
committed by Tim Quatmann
parent
commit
df52e5af88
  1. 8
      src/storm/logic/Formula.cpp
  2. 5
      src/storm/logic/Formula.h

8
src/storm/logic/Formula.cpp

@ -333,6 +333,14 @@ namespace storm {
return dynamic_cast<EventuallyFormula const&>(*this); return dynamic_cast<EventuallyFormula const&>(*this);
} }
GameFormula& Formula::asGameFormula() {
return dynamic_cast<GameFormula&>(*this);
}
GameFormula const& Formula::asGameFormula() const {
return dynamic_cast<GameFormula const&>(*this);
}
GloballyFormula& Formula::asGloballyFormula() { GloballyFormula& Formula::asGloballyFormula() {
return dynamic_cast<GloballyFormula&>(*this); return dynamic_cast<GloballyFormula&>(*this);
} }

5
src/storm/logic/Formula.h

@ -154,7 +154,10 @@ namespace storm {
EventuallyFormula& asReachabilityTimeFormula(); EventuallyFormula& asReachabilityTimeFormula();
EventuallyFormula const& asReachabilityTimeFormula() const; EventuallyFormula const& asReachabilityTimeFormula() const;
GameFormula& asGameFormula();
GameFormula const& asGameFormula() const;
GloballyFormula& asGloballyFormula(); GloballyFormula& asGloballyFormula();
GloballyFormula const& asGloballyFormula() const; GloballyFormula const& asGloballyFormula() const;

Loading…
Cancel
Save