30 for (
const auto& place : gspn.
getPlaces()) {
33 if (placeLayout.count(place.getID()) > 0) {
34 x = placeLayout.at(place.getID()).x;
35 y = placeLayout.at(place.getID()).y;
38 Json jsonPlace = translatePlace(place, x, y);
39 jsonGspn.push_back(jsonPlace);
46 if (transitionLayout.count(transition.getID()) > 0) {
47 x = transitionLayout.at(transition.getID()).x;
48 y = transitionLayout.at(transition.getID()).y;
51 Json jsonImmediateTransition = translateImmediateTransition(transition, x, y);
52 jsonGspn.push_back(jsonImmediateTransition);
59 if (transitionLayout.count(transition.getID()) > 0) {
60 x = transitionLayout.at(transition.getID()).x;
61 y = transitionLayout.at(transition.getID()).y;
64 Json jsonTimedTransition = translateTimedTransition(transition, x, y);
65 jsonGspn.push_back(jsonTimedTransition);
69 std::vector<storm::gspn::Place> places = gspn.
getPlaces();
73 for (
auto const& entry : transition.getInputPlaces()) {
75 Json jsonInputArc = translateArc(transition, place, entry.second,
true, ArcType::INPUT);
76 jsonGspn.push_back(jsonInputArc);
80 for (
auto const& entry : transition.getInhibitionPlaces()) {
82 Json jsonInputArc = translateArc(transition, place, entry.second,
true, ArcType::INHIBITOR);
83 jsonGspn.push_back(jsonInputArc);
87 for (
auto const& entry : transition.getOutputPlaces()) {
89 Json jsonInputArc = translateArc(transition, place, entry.second,
true, ArcType::OUTPUT);
90 jsonGspn.push_back(jsonInputArc);
96 for (
auto const& entry : transition.getInputPlaces()) {
98 Json jsonInputArc = translateArc(transition, place, entry.second,
false, ArcType::INPUT);
99 jsonGspn.push_back(jsonInputArc);
103 for (
auto const& entry : transition.getInhibitionPlaces()) {
105 Json jsonInputArc = translateArc(transition, place, entry.second,
false, ArcType::INHIBITOR);
106 jsonGspn.push_back(jsonInputArc);
110 for (
auto const& entry : transition.getOutputPlaces()) {
112 Json jsonInputArc = translateArc(transition, place, entry.second,
false, ArcType::OUTPUT);
113 jsonGspn.push_back(jsonInputArc);