From d77f4e7564821dad857a893f66488895cfb013ec Mon Sep 17 00:00:00 2001 From: Sebastian Junges Date: Thu, 3 May 2018 00:00:45 +0200 Subject: [PATCH] gspn pnml export for capacities --- src/storm-gspn/storage/gspn/GSPN.cpp | 5 +++++ src/storm-gspn/storage/gspn/Place.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/src/storm-gspn/storage/gspn/GSPN.cpp b/src/storm-gspn/storage/gspn/GSPN.cpp index f26c71540..37ac640b0 100644 --- a/src/storm-gspn/storage/gspn/GSPN.cpp +++ b/src/storm-gspn/storage/gspn/GSPN.cpp @@ -533,6 +533,11 @@ namespace storm { stream << space3 << "" << std::endl; stream << space4 << "Default," << place.getNumberOfInitialTokens() << "" << std::endl; stream << space3 << "" << std::endl; + if(place.hasRestrictedCapacity()) { + stream << space3 << "" << std::endl; + stream << space4 << "Default," << place.getCapacity() << "" << std::endl; + stream << space3 << "" << std::endl; + } stream << space2 << "" << std::endl; } diff --git a/src/storm-gspn/storage/gspn/Place.cpp b/src/storm-gspn/storage/gspn/Place.cpp index d60ace5f6..ca9a4a9e1 100644 --- a/src/storm-gspn/storage/gspn/Place.cpp +++ b/src/storm-gspn/storage/gspn/Place.cpp @@ -34,6 +34,7 @@ namespace storm { } uint64_t Place::getCapacity() const { + assert(hasRestrictedCapacity()); return capacity.get(); }