Browse Source

gspn pnml export for capacities

tempestpy_adaptions
Sebastian Junges 7 years ago
parent
commit
d77f4e7564
  1. 5
      src/storm-gspn/storage/gspn/GSPN.cpp
  2. 1
      src/storm-gspn/storage/gspn/Place.cpp

5
src/storm-gspn/storage/gspn/GSPN.cpp

@ -533,6 +533,11 @@ namespace storm {
stream << space3 << "<initialMarking>" << std::endl;
stream << space4 << "<value>Default," << place.getNumberOfInitialTokens() << "</value>" << std::endl;
stream << space3 << "</initialMarking>" << std::endl;
if(place.hasRestrictedCapacity()) {
stream << space3 << "<capacity>" << std::endl;
stream << space4 << "<value>Default," << place.getCapacity() << "</value>" << std::endl;
stream << space3 << "</capacity>" << std::endl;
}
stream << space2 << "</place>" << std::endl;
}

1
src/storm-gspn/storage/gspn/Place.cpp

@ -34,6 +34,7 @@ namespace storm {
}
uint64_t Place::getCapacity() const {
assert(hasRestrictedCapacity());
return capacity.get();
}

Loading…
Cancel
Save