Browse Source
removed reward path formulas. reward path formulas are now just path formulas. this allows some invalid formulas to be constructed, so this now has to be checked dynamically
removed reward path formulas. reward path formulas are now just path formulas. this allows some invalid formulas to be constructed, so this now has to be checked dynamically
Former-commit-id: c8527c8e9a
tempestpy_adaptions
dehnert
9 years ago
51 changed files with 212 additions and 276 deletions
-
4src/logic/BoundedUntilFormula.cpp
-
1src/logic/BoundedUntilFormula.h
-
4src/logic/ConditionalPathFormula.cpp
-
3src/logic/ConditionalPathFormula.h
-
4src/logic/CumulativeRewardFormula.cpp
-
7src/logic/CumulativeRewardFormula.h
-
8src/logic/EventuallyFormula.cpp
-
4src/logic/EventuallyFormula.h
-
34src/logic/Formula.cpp
-
12src/logic/Formula.h
-
2src/logic/Formulas.h
-
6src/logic/GloballyFormula.cpp
-
3src/logic/GloballyFormula.h
-
4src/logic/InstantaneousRewardFormula.cpp
-
7src/logic/InstantaneousRewardFormula.h
-
4src/logic/LongRunAverageRewardFormula.cpp
-
10src/logic/LongRunAverageRewardFormula.h
-
4src/logic/NextFormula.cpp
-
3src/logic/NextFormula.h
-
35src/logic/ReachabilityRewardFormula.cpp
-
36src/logic/ReachabilityRewardFormula.h
-
3src/logic/RewardOperatorFormula.cpp
-
9src/logic/RewardPathFormula.cpp
-
19src/logic/RewardPathFormula.h
-
4src/logic/UntilFormula.cpp
-
3src/logic/UntilFormula.h
-
80src/modelchecker/AbstractModelChecker.cpp
-
4src/modelchecker/AbstractModelChecker.h
-
37src/modelchecker/CheckTask.h
-
8src/modelchecker/csl/HybridCtmcCslModelChecker.cpp
-
2src/modelchecker/csl/HybridCtmcCslModelChecker.h
-
8src/modelchecker/csl/SparseCtmcCslModelChecker.cpp
-
2src/modelchecker/csl/SparseCtmcCslModelChecker.h
-
8src/modelchecker/csl/SparseMarkovAutomatonCslModelChecker.cpp
-
2src/modelchecker/csl/SparseMarkovAutomatonCslModelChecker.h
-
8src/modelchecker/prctl/HybridDtmcPrctlModelChecker.cpp
-
2src/modelchecker/prctl/HybridDtmcPrctlModelChecker.h
-
10src/modelchecker/prctl/HybridMdpPrctlModelChecker.cpp
-
2src/modelchecker/prctl/HybridMdpPrctlModelChecker.h
-
10src/modelchecker/prctl/SparseDtmcPrctlModelChecker.cpp
-
2src/modelchecker/prctl/SparseDtmcPrctlModelChecker.h
-
10src/modelchecker/prctl/SparseMdpPrctlModelChecker.cpp
-
2src/modelchecker/prctl/SparseMdpPrctlModelChecker.h
-
10src/modelchecker/prctl/SymbolicDtmcPrctlModelChecker.cpp
-
2src/modelchecker/prctl/SymbolicDtmcPrctlModelChecker.h
-
10src/modelchecker/prctl/SymbolicMdpPrctlModelChecker.cpp
-
2src/modelchecker/prctl/SymbolicMdpPrctlModelChecker.h
-
15src/modelchecker/reachability/SparseDtmcEliminationModelChecker.cpp
-
2src/modelchecker/reachability/SparseDtmcEliminationModelChecker.h
-
12src/parser/FormulaParser.cpp
-
5src/storage/bisimulation/BisimulationDecomposition.cpp
@ -1,35 +0,0 @@ |
|||
#include "src/logic/ReachabilityRewardFormula.h"
|
|||
|
|||
namespace storm { |
|||
namespace logic { |
|||
ReachabilityRewardFormula::ReachabilityRewardFormula(std::shared_ptr<Formula const> const& subformula) : subformula(subformula) { |
|||
// Intentionally left empty.
|
|||
} |
|||
|
|||
bool ReachabilityRewardFormula::isReachabilityRewardFormula() const { |
|||
return true; |
|||
} |
|||
|
|||
Formula const& ReachabilityRewardFormula::getSubformula() const { |
|||
return *subformula; |
|||
} |
|||
|
|||
void ReachabilityRewardFormula::gatherAtomicExpressionFormulas(std::vector<std::shared_ptr<AtomicExpressionFormula const>>& atomicExpressionFormulas) const { |
|||
this->getSubformula().gatherAtomicExpressionFormulas(atomicExpressionFormulas); |
|||
} |
|||
|
|||
void ReachabilityRewardFormula::gatherAtomicLabelFormulas(std::vector<std::shared_ptr<AtomicLabelFormula const>>& atomicLabelFormulas) const { |
|||
this->getSubformula().gatherAtomicLabelFormulas(atomicLabelFormulas); |
|||
} |
|||
|
|||
std::shared_ptr<Formula> ReachabilityRewardFormula::substitute(std::map<storm::expressions::Variable, storm::expressions::Expression> const& substitution) const { |
|||
return std::make_shared<ReachabilityRewardFormula>(this->getSubformula().substitute(substitution)); |
|||
} |
|||
|
|||
std::ostream& ReachabilityRewardFormula::writeToStream(std::ostream& out) const { |
|||
out << "F "; |
|||
this->getSubformula().writeToStream(out); |
|||
return out; |
|||
} |
|||
} |
|||
} |
@ -1,36 +0,0 @@ |
|||
#ifndef STORM_LOGIC_REACHABILITYREWARDFORMULA_H_ |
|||
#define STORM_LOGIC_REACHABILITYREWARDFORMULA_H_ |
|||
|
|||
#include <memory> |
|||
|
|||
#include "src/logic/RewardPathFormula.h" |
|||
|
|||
|
|||
namespace storm { |
|||
namespace logic { |
|||
class ReachabilityRewardFormula : public RewardPathFormula { |
|||
public: |
|||
ReachabilityRewardFormula(std::shared_ptr<Formula const> const& subformula); |
|||
|
|||
virtual ~ReachabilityRewardFormula() { |
|||
// Intentionally left empty. |
|||
} |
|||
|
|||
virtual bool isReachabilityRewardFormula() const override; |
|||
|
|||
Formula const& getSubformula() const; |
|||
|
|||
virtual void gatherAtomicExpressionFormulas(std::vector<std::shared_ptr<AtomicExpressionFormula const>>& atomicExpressionFormulas) const override; |
|||
virtual void gatherAtomicLabelFormulas(std::vector<std::shared_ptr<AtomicLabelFormula const>>& atomicLabelFormulas) const override; |
|||
|
|||
virtual std::ostream& writeToStream(std::ostream& out) const override; |
|||
|
|||
virtual std::shared_ptr<Formula> substitute(std::map<storm::expressions::Variable, storm::expressions::Expression> const& substitution) const override; |
|||
|
|||
private: |
|||
std::shared_ptr<Formula const> subformula; |
|||
}; |
|||
} |
|||
} |
|||
|
|||
#endif /* STORM_LOGIC_REACHABILITYREWARDFORMULA_H_ */ |
@ -1,9 +0,0 @@ |
|||
#include "src/logic/RewardPathFormula.h"
|
|||
|
|||
namespace storm { |
|||
namespace logic { |
|||
bool RewardPathFormula::isRewardPathFormula() const { |
|||
return true; |
|||
} |
|||
} |
|||
} |
@ -1,19 +0,0 @@ |
|||
#ifndef STORM_LOGIC_PATHREWARDFORMULA_H_ |
|||
#define STORM_LOGIC_PATHREWARDFORMULA_H_ |
|||
|
|||
#include "src/logic/PathFormula.h" |
|||
|
|||
namespace storm { |
|||
namespace logic { |
|||
class RewardPathFormula : public Formula { |
|||
public: |
|||
virtual ~RewardPathFormula() { |
|||
// Intentionally left empty. |
|||
} |
|||
|
|||
virtual bool isRewardPathFormula() const override; |
|||
}; |
|||
} |
|||
} |
|||
|
|||
#endif /* STORM_LOGIC_PATHREWARDFORMULA_H_ */ |
Write
Preview
Loading…
Cancel
Save
Reference in new issue