Browse Source

Export pnpro with single-server semantics

tempestpy_adaptions
Matthias Volk 7 years ago
parent
commit
081c0a95d0
  1. 5
      src/storm-gspn/storage/gspn/GSPN.cpp

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

@ -432,7 +432,10 @@ namespace storm {
for (auto& trans : timedTransitions) { for (auto& trans : timedTransitions) {
stream << space3 << "<transition name=\"" << trans.getName() << "\" "; stream << space3 << "<transition name=\"" << trans.getName() << "\" ";
stream << "type=\"EXP\" "; stream << "type=\"EXP\" ";
stream << "nservers-x=\"" << trans.getRate() << "\" ";
//stream << "nservers-x=\"" << trans.getRate() << "\" ";
// Use single-server semantics for GSPNs:
// timed rates are independent of number of tokens in input places
stream << "nservers=\"1\" ";
//Note: The rate is translated to a number showing the decimal figures so GreatSPN can process it //Note: The rate is translated to a number showing the decimal figures so GreatSPN can process it
stream << "delay=\"" << std::showpoint << trans.getRate() << "\" "; stream << "delay=\"" << std::showpoint << trans.getRate() << "\" ";
if (transitionLayout.count(trans.getID()) > 0) { if (transitionLayout.count(trans.getID()) > 0) {

Loading…
Cancel
Save