Browse Source
Parsing parameteric dtmcs and exporting them to smt2
Parsing parameteric dtmcs and exporting them to smt2
Former-commit-id: c791625d40
tempestpy_adaptions
sjunges
11 years ago
16 changed files with 316 additions and 47 deletions
-
10src/adapters/ExplicitModelAdapter.h
-
8src/adapters/extendedCarl.h
-
62src/modelchecker/reachability/DirectEncoding.h
-
6src/models/AbstractDeterministicModel.h
-
2src/models/Ctmdp.h
-
2src/models/Mdp.h
-
56src/storage/DeterministicTransition.h
-
4src/storage/SparseMatrix.cpp
-
80src/storage/expressions/ExpressionEvaluation.h
-
2src/storage/expressions/SimpleValuation.cpp
-
1src/storage/parameters.h
-
14src/storage/prism/Program.cpp
-
2src/storm.cpp
-
109src/stormParametric.cpp
-
3src/stormParametric.h
-
2src/utility/StormOptions.cpp
@ -0,0 +1,56 @@ |
|||
/** |
|||
* @file: DeterministicTransition.h |
|||
* @author: Sebastian Junges |
|||
* |
|||
* @since April 24, 2014 |
|||
*/ |
|||
|
|||
#pragma once |
|||
|
|||
namespace storm |
|||
{ |
|||
namespace storage |
|||
{ |
|||
typedef uint_fast64_t StateId; |
|||
|
|||
template<typename ProbabilityType> |
|||
class DeterministicTransition |
|||
{ |
|||
std::pair<StateId, ProbabilityType> mTransition; |
|||
|
|||
public: |
|||
DeterministicTransition(std::pair<StateId, ProbabilityType> const& transition) : |
|||
mTransition(transition) |
|||
{ |
|||
} |
|||
|
|||
DeterministicTransition(std::pair<StateId, ProbabilityType> && transition) : |
|||
mTransition(transition) |
|||
{ |
|||
} |
|||
|
|||
DeterministicTransition(StateId targetState) : |
|||
DeterministicTransition({targetState, ProbabilityType(0)}) |
|||
{ |
|||
|
|||
} |
|||
|
|||
|
|||
StateId& targetState() { |
|||
return mTransition.first; |
|||
} |
|||
StateId const& targetState() const { |
|||
return mTransition.first; |
|||
} |
|||
|
|||
ProbabilityType& probability() { |
|||
return mTransition.second; |
|||
} |
|||
|
|||
ProbabilityType const& probability() const { |
|||
return mTransition.second; |
|||
} |
|||
|
|||
}; |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue