Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
UnaryPathFormula.cpp
Go to the documentation of this file.
1
#include "
storm/logic/UnaryPathFormula.h
"
2
3
namespace
storm
{
4
namespace
logic {
5
UnaryPathFormula::UnaryPathFormula
(std::shared_ptr<Formula const>
const
& subformula) : subformula(subformula) {
6
// Intentionally left empty.
7
}
8
9
bool
UnaryPathFormula::isUnaryPathFormula
()
const
{
10
return
true
;
11
}
12
13
Formula
const
&
UnaryPathFormula::getSubformula
()
const
{
14
return
*subformula;
15
}
16
17
void
UnaryPathFormula::gatherAtomicExpressionFormulas
(std::vector<std::shared_ptr<AtomicExpressionFormula const>>& atomicExpressionFormulas)
const
{
18
this->
getSubformula
().
gatherAtomicExpressionFormulas
(atomicExpressionFormulas);
19
}
20
21
void
UnaryPathFormula::gatherAtomicLabelFormulas
(std::vector<std::shared_ptr<AtomicLabelFormula const>>& atomicLabelFormulas)
const
{
22
this->
getSubformula
().
gatherAtomicLabelFormulas
(atomicLabelFormulas);
23
}
24
25
void
UnaryPathFormula::gatherReferencedRewardModels
(std::set<std::string>& referencedRewardModels)
const
{
26
this->
getSubformula
().
gatherReferencedRewardModels
(referencedRewardModels);
27
}
28
29
void
UnaryPathFormula::gatherUsedVariables
(std::set<storm::expressions::Variable>& usedVariables)
const
{
30
this->
getSubformula
().
gatherUsedVariables
(usedVariables);
31
}
32
33
bool
UnaryPathFormula::hasQualitativeResult
()
const
{
34
return
false
;
35
}
36
37
bool
UnaryPathFormula::hasQuantitativeResult
()
const
{
38
return
true
;
39
}
40
41
}
// namespace logic
42
}
// namespace storm
UnaryPathFormula.h
storm::logic::Formula
Definition
Formula.h:30
storm::logic::Formula::gatherReferencedRewardModels
virtual void gatherReferencedRewardModels(std::set< std::string > &referencedRewardModels) const
Definition
Formula.cpp:564
storm::logic::Formula::gatherAtomicLabelFormulas
virtual void gatherAtomicLabelFormulas(std::vector< std::shared_ptr< AtomicLabelFormula const > > &atomicLabelFormulas) const
Definition
Formula.cpp:560
storm::logic::Formula::gatherUsedVariables
virtual void gatherUsedVariables(std::set< storm::expressions::Variable > &usedVariables) const
Definition
Formula.cpp:568
storm::logic::Formula::gatherAtomicExpressionFormulas
virtual void gatherAtomicExpressionFormulas(std::vector< std::shared_ptr< AtomicExpressionFormula const > > &atomicExpressionFormulas) const
Definition
Formula.cpp:556
storm::logic::UnaryPathFormula::UnaryPathFormula
UnaryPathFormula(std::shared_ptr< Formula const > const &subformula)
Definition
UnaryPathFormula.cpp:5
storm::logic::UnaryPathFormula::gatherReferencedRewardModels
virtual void gatherReferencedRewardModels(std::set< std::string > &referencedRewardModels) const override
Definition
UnaryPathFormula.cpp:25
storm::logic::UnaryPathFormula::isUnaryPathFormula
virtual bool isUnaryPathFormula() const override
Definition
UnaryPathFormula.cpp:9
storm::logic::UnaryPathFormula::gatherUsedVariables
virtual void gatherUsedVariables(std::set< storm::expressions::Variable > &usedVariables) const override
Definition
UnaryPathFormula.cpp:29
storm::logic::UnaryPathFormula::getSubformula
Formula const & getSubformula() const
Definition
UnaryPathFormula.cpp:13
storm::logic::UnaryPathFormula::hasQualitativeResult
virtual bool hasQualitativeResult() const override
Definition
UnaryPathFormula.cpp:33
storm::logic::UnaryPathFormula::gatherAtomicExpressionFormulas
virtual void gatherAtomicExpressionFormulas(std::vector< std::shared_ptr< AtomicExpressionFormula const > > &atomicExpressionFormulas) const override
Definition
UnaryPathFormula.cpp:17
storm::logic::UnaryPathFormula::hasQuantitativeResult
virtual bool hasQuantitativeResult() const override
Definition
UnaryPathFormula.cpp:37
storm::logic::UnaryPathFormula::gatherAtomicLabelFormulas
virtual void gatherAtomicLabelFormulas(std::vector< std::shared_ptr< AtomicLabelFormula const > > &atomicLabelFormulas) const override
Definition
UnaryPathFormula.cpp:21
storm
LabParser.cpp.
Definition
cli.cpp:18
src
storm
logic
UnaryPathFormula.cpp
Generated by
1.9.8