|
|
@ -46,6 +46,22 @@ namespace storm { |
|
|
|
* @return The number of tokens at the place. |
|
|
|
*/ |
|
|
|
uint_fast64_t getNumberOfTokensAt(uint_fast64_t place); |
|
|
|
|
|
|
|
/*! |
|
|
|
* Reset the number of places. |
|
|
|
* If the new number of places is larger than the old one, the new places start with 0 tokens. |
|
|
|
* If the new number of places is smaller than the old one, the places which are going to be |
|
|
|
* erased must not contain any tokens. |
|
|
|
* |
|
|
|
* @param numberOfPlaces The new number of places. |
|
|
|
* @return Return True if the change is made. |
|
|
|
*/ |
|
|
|
bool setNumberOfPlaces(uint_fast64_t numberOfPlaces); |
|
|
|
|
|
|
|
/*! |
|
|
|
* |
|
|
|
*/ |
|
|
|
bool setMaxNumberOfTokens(uint_fast64_t maxNumberOfTokens); |
|
|
|
private: |
|
|
|
// the maximal number of places in the gspn |
|
|
|
uint_fast64_t numberOfPlaces; |
|
|
|