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

limited scope of topic rewrites

parent 4fde6f58
Branches
No related tags found
No related merge requests found
aspect ServiceRewrites { aspect ServiceRewrites {
syn boolean PetriNet.hasServerPrototypePages() {
for(Page p : this.allPages()){
if(p.getType().equals(PnmlConstants.PAGE_TYPE_SERVER)){
return false;
}
}
return true;
}
rewrite Page { rewrite Page {
when ( getType() != null && getType().equals(PnmlConstants.PAGE_TYPE_SERVER) && !getId().endsWith(PnmlConstants.PAGE_SERVER_INSTANCE_SUFFIX) ) when ( getType() != null && getType().equals(PnmlConstants.PAGE_TYPE_SERVER) && !getId().endsWith(PnmlConstants.PAGE_SERVER_INSTANCE_SUFFIX) )
to Page { to Page {
......
...@@ -4,7 +4,7 @@ import de.tudresden.inf.st.pnml.flatter.transform.*; ...@@ -4,7 +4,7 @@ import de.tudresden.inf.st.pnml.flatter.transform.*;
aspect TopicRewrites { aspect TopicRewrites {
rewrite DinerosTransition { rewrite DinerosTransition {
when ( getStaticTransitionInformation().isTopicTransitionInformation() ) when ( !petriNet().hasServerPrototypePages() && getStaticTransitionInformation().isTopicTransitionInformation() )
to Page { to Page {
Page res = new Page(); Page res = new Page();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment