Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
PNML Flattener
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DiNeROS
DiNeROS 1
PNML Flattener
Commits
6ad97da6
Commit
6ad97da6
authored
1 year ago
by
Sebastian Ebert
Browse files
Options
Downloads
Patches
Plain Diff
limited scope of topic rewrites
parent
4fde6f58
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/jastadd/flatter/rewrites/ServiceRewrites.jadd
+10
-0
10 additions, 0 deletions
src/main/jastadd/flatter/rewrites/ServiceRewrites.jadd
src/main/jastadd/flatter/rewrites/TopicRewrites.jadd
+1
-1
1 addition, 1 deletion
src/main/jastadd/flatter/rewrites/TopicRewrites.jadd
with
11 additions
and
1 deletion
src/main/jastadd/flatter/rewrites/ServiceRewrites.jadd
+
10
−
0
View file @
6ad97da6
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 {
...
...
This diff is collapsed.
Click to expand it.
src/main/jastadd/flatter/rewrites/TopicRewrites.jadd
+
1
−
1
View file @
6ad97da6
...
@@ -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();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment