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