|
@ -21,6 +21,7 @@ namespace storm { |
|
|
place.setNumberOfInitialTokens(initialTokens); |
|
|
place.setNumberOfInitialTokens(initialTokens); |
|
|
place.setName(name); |
|
|
place.setName(name); |
|
|
places.push_back(place); |
|
|
places.push_back(place); |
|
|
|
|
|
placeNames.emplace(name, newId); |
|
|
return newId; |
|
|
return newId; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -60,6 +61,8 @@ namespace storm { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
immediateTransitions.push_back(trans); |
|
|
immediateTransitions.push_back(trans); |
|
|
|
|
|
|
|
|
|
|
|
transitionNames.emplace(name, newId); |
|
|
return newId; |
|
|
return newId; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -72,6 +75,8 @@ namespace storm { |
|
|
trans.setRate(rate); |
|
|
trans.setRate(rate); |
|
|
trans.setID(newId); |
|
|
trans.setID(newId); |
|
|
timedTransitions.push_back(trans); |
|
|
timedTransitions.push_back(trans); |
|
|
|
|
|
|
|
|
|
|
|
transitionNames.emplace(name, newId); |
|
|
return newId; |
|
|
return newId; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|