Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
PNML Base
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DiNeROS
DiNeROS 1
PNML Base
Commits
2c596476
Commit
2c596476
authored
Jun 30, 2023
by
Sebastian Ebert
Browse files
Options
Downloads
Patches
Plain Diff
added debugging methods in nav
parent
369e34d8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/jastadd/base/Navigation.jrag
+31
-0
31 additions, 0 deletions
src/main/jastadd/base/Navigation.jrag
with
31 additions
and
0 deletions
src/main/jastadd/base/Navigation.jrag
+
31
−
0
View file @
2c596476
...
@@ -251,6 +251,37 @@ aspect Navigation {
...
@@ -251,6 +251,37 @@ aspect Navigation {
return null;
return null;
}
}
syn String PetriNet.PlaceStringExport() {
String res = "";
for (Place p : this.allPlaces()) {
res += p.getId() + ", ";
}
return res;
}
syn RefPlace PetriNet.getRefPlaceById(String id) {
for (RefPlace rp : this.allRefPlaces()) {
if (rp.getId().equals(id)) {
return rp;
}
}
return null;
}
syn List<Place> PetriNet.getPlacesWithContainingString(String s) {
List<Place> res = new ArrayList<>();
for (Place p : this.allPlaces()) {
if (p.getId().contains(s)) {
res.add(p);
}
}
return res;
}
syn RefTransition PetriNet.getRefTransitionFromTransitionNode(TransitionNode tNode) {
syn RefTransition PetriNet.getRefTransitionFromTransitionNode(TransitionNode tNode) {
if (tNode.isRefTransition()) {
if (tNode.isRefTransition()) {
...
...
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