Browse Source
Renamed dtmc folder to models, corrected namespace in contained classes and fixed includes in affected files.
Renamed dtmc folder to models, corrected namespace in contained classes and fixed includes in affected files.
Added DTMC class stub.tempestpy_adaptions
dehnert
12 years ago
7 changed files with 94 additions and 18 deletions
-
16src/models/atomic_proposition.h
-
57src/models/dtmc.h
-
21src/models/labeling.h
-
4src/parser/read_lab_file.cpp
-
4src/parser/read_lab_file.h
-
6src/vector/bitvector.h
-
4test/parser/read_lab_file_test.cpp
@ -0,0 +1,57 @@ |
|||
/* |
|||
* dtmc.h |
|||
* |
|||
* Created on: 14.11.2012 |
|||
* Author: Christian Dehnert |
|||
*/ |
|||
|
|||
#ifndef DTMC_H_ |
|||
#define DTMC_H_ |
|||
|
|||
#include "labeling.h" |
|||
#include "src/sparse/static_sparse_matrix.h" |
|||
|
|||
namespace mrmc { |
|||
|
|||
namespace models { |
|||
|
|||
/*! This class represents a discrete-time Markov chain (DTMC) whose states are |
|||
* labeled with atomic propositions. |
|||
*/ |
|||
class Dtmc { |
|||
|
|||
public: |
|||
|
|||
//! Constructor |
|||
/*! |
|||
\param probability_matrix The transition probability function of the DTMC given by a matrix. |
|||
\param state_labeling The labeling that assigns a set of atomic propositions to each state. |
|||
*/ |
|||
Dtmc(mrmc::sparse::StaticSparseMatrix* probability_matrix, |
|||
mrmc::models::Labeling* state_labeling) { |
|||
this->probability_matrix = probability_matrix; |
|||
this->state_labeling = state_labeling; |
|||
} |
|||
|
|||
//! Copy Constructor |
|||
/*! |
|||
Copy Constructor. Creates an exact copy of the source DTMC. Modification of either DTMC does not affect the other. |
|||
@param dtmc A reference to the matrix that should be copied from |
|||
*/ |
|||
Dtmc(const Dtmc &dtmc) : probability_matrix(dtmc.probability_matrix), state_labeling(dtmc.state_labeling) { |
|||
// intentionally left empty |
|||
} |
|||
|
|||
|
|||
private: |
|||
|
|||
mrmc::sparse::StaticSparseMatrix* probability_matrix; |
|||
mrmc::models::Labeling* state_labeling; |
|||
|
|||
}; |
|||
|
|||
} //namespace models |
|||
|
|||
} //namespace mrmc |
|||
|
|||
#endif /* DTMC_H_ */ |
Write
Preview
Loading…
Cancel
Save
Reference in new issue