Browse Source

SPAREs with unshared children working

Former-commit-id: 93f2e3f830
tempestpy_adaptions
mdeutschen 8 years ago
committed by Sebastian Junges
parent
commit
45290f5c49
  1. 13
      src/transformations/dft/DftToGspnTransformator.cpp

13
src/transformations/dft/DftToGspnTransformator.cpp

@ -502,11 +502,18 @@ namespace storm {
}
}
else { // A spare child.
// TODO: Draw line from "SC_activating" to every BE, that is connected to the spare child.
auto spareExit = mGspn.getImmediateTransition(child->name() + STR_ACTIVATING);
std::vector<int> ids = getAllBEIDsOfElement(child);
for (std::size_t k = 0; k < ids.size(); k++) {
auto childEntry = mGspn.getPlace(mDft.getElement(ids[k])->name() + STR_ACTIVATED);
if (spareExit.first && childEntry.first) { // Only add arcs if the objects have been found.
spareExit.second->setInhibitionArcMultiplicity(childEntry.second, 1);
spareExit.second->setOutputArcMultiplicity(childEntry.second, 1);
}
}
// TODO: End.
auto childExit = mGspn.getPlace(child->name() + STR_FAILED);
auto spareEntry = mGspn.getImmediateTransition(mDft.getElement(parents[j])->name() + "_claiming_" + child->name());
auto spareEntry2 = mGspn.getImmediateTransition(child->name() + STR_ACTIVATING);

Loading…
Cancel
Save