32 changed files with 154 additions and 55 deletions
-
12src/logic/Formula.cpp
-
5src/logic/Formula.h
-
1src/logic/Formulas.h
-
21src/logic/LongRunAverageRewardFormula.cpp
-
29src/logic/LongRunAverageRewardFormula.h
-
16src/modelchecker/AbstractModelChecker.cpp
-
3src/modelchecker/AbstractModelChecker.h
-
4src/modelchecker/csl/HybridCtmcCslModelChecker.cpp
-
2src/modelchecker/csl/HybridCtmcCslModelChecker.h
-
4src/modelchecker/csl/SparseCtmcCslModelChecker.cpp
-
2src/modelchecker/csl/SparseCtmcCslModelChecker.h
-
4src/modelchecker/csl/SparseMarkovAutomatonCslModelChecker.cpp
-
2src/modelchecker/csl/SparseMarkovAutomatonCslModelChecker.h
-
4src/modelchecker/csl/helper/HybridCtmcCslHelper.cpp
-
2src/modelchecker/csl/helper/HybridCtmcCslHelper.h
-
2src/modelchecker/csl/helper/SparseCtmcCslHelper.cpp
-
2src/modelchecker/csl/helper/SparseCtmcCslHelper.h
-
2src/modelchecker/csl/helper/SparseMarkovAutomatonCslHelper.cpp
-
2src/modelchecker/csl/helper/SparseMarkovAutomatonCslHelper.h
-
4src/modelchecker/prctl/HybridDtmcPrctlModelChecker.cpp
-
2src/modelchecker/prctl/HybridDtmcPrctlModelChecker.h
-
4src/modelchecker/prctl/SparseDtmcPrctlModelChecker.cpp
-
2src/modelchecker/prctl/SparseDtmcPrctlModelChecker.h
-
4src/modelchecker/prctl/SparseMdpPrctlModelChecker.cpp
-
2src/modelchecker/prctl/SparseMdpPrctlModelChecker.h
-
4src/modelchecker/prctl/helper/SparseDtmcPrctlHelper.cpp
-
2src/modelchecker/prctl/helper/SparseDtmcPrctlHelper.h
-
2src/modelchecker/prctl/helper/SparseMdpPrctlHelper.cpp
-
2src/modelchecker/prctl/helper/SparseMdpPrctlHelper.h
-
29src/modelchecker/reachability/SparseDtmcEliminationModelChecker.cpp
-
10src/modelchecker/reachability/SparseDtmcEliminationModelChecker.h
-
23src/parser/FormulaParser.cpp
@ -0,0 +1,21 @@ |
|||
#include "src/logic/LongRunAverageRewardFormula.h"
|
|||
|
|||
namespace storm { |
|||
namespace logic { |
|||
LongRunAverageRewardFormula::LongRunAverageRewardFormula() { |
|||
// Intentionally left empty.
|
|||
} |
|||
|
|||
bool LongRunAverageRewardFormula::isLongRunAverageRewardFormula() const { |
|||
return true; |
|||
} |
|||
|
|||
std::shared_ptr<Formula> LongRunAverageRewardFormula::substitute(std::map<storm::expressions::Variable, storm::expressions::Expression> const& substitution) const { |
|||
return std::shared_ptr<Formula>(new LongRunAverageRewardFormula()); |
|||
} |
|||
|
|||
std::ostream& LongRunAverageRewardFormula::writeToStream(std::ostream& out) const { |
|||
return out << "LRA"; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,29 @@ |
|||
#ifndef STORM_LOGIC_LONGRUNAVERAGEREWARDFORMULA_H_ |
|||
#define STORM_LOGIC_LONGRUNAVERAGEREWARDFORMULA_H_ |
|||
|
|||
#include <memory> |
|||
|
|||
#include "src/logic/RewardPathFormula.h" |
|||
|
|||
|
|||
namespace storm { |
|||
namespace logic { |
|||
class LongRunAverageRewardFormula : public RewardPathFormula { |
|||
public: |
|||
LongRunAverageRewardFormula(); |
|||
|
|||
virtual ~LongRunAverageRewardFormula() { |
|||
// Intentionally left empty. |
|||
} |
|||
|
|||
virtual bool isLongRunAverageRewardFormula() const override; |
|||
|
|||
virtual std::shared_ptr<Formula> substitute(std::map<storm::expressions::Variable, storm::expressions::Expression> const& substitution) const override; |
|||
|
|||
virtual std::ostream& writeToStream(std::ostream& out) const override; |
|||
|
|||
}; |
|||
} |
|||
} |
|||
|
|||
#endif /* STORM_LOGIC_LONGRUNAVERAGEREWARDFORMULA_H_ */ |
Reference in new issue
xxxxxxxxxx