Skip to content
Snippets Groups Projects
Commit e7d9e50b authored by Sebastian Ebert's avatar Sebastian Ebert
Browse files

extended nav

parent 64ed1823
No related branches found
No related tags found
No related merge requests found
package de.tudresden.inf.st.pnml.base.util;
import de.tudresden.inf.st.pnml.jastadd.model.Node;
import de.tudresden.inf.st.pnml.jastadd.model.Place;
public class NavUtils {
public static Place getOriginPlace(Node p){
if(p.asRefPlace() != null){
return p.asPlaceNode().place();
} else {
return getOriginPlace(p);
}
}
}
......@@ -2,6 +2,10 @@ aspect Navigation {
inh PetriNet PnObject.petriNet();
eq PetriNet.getChild().petriNet() = this;
syn Place RefPlace.originPlace(){
return de.tudresden.inf.st.pnml.base.util.NavUtils.getOriginPlace(this);
}
syn java.util.Collection<Place> TransitionNode.incomingPlaces() {
java.util.Set<Place> s = new java.util.HashSet<>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment