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
2ef1c174
Commit
2ef1c174
authored
2 years ago
by
Sebastian Ebert
Browse files
Options
Downloads
Plain Diff
merged Main.java with upstream
parents
52d582fb
c1855efb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/tudresden/inf/st/pnml/flatter/Main.java
+4
-9
4 additions, 9 deletions
src/main/java/de/tudresden/inf/st/pnml/flatter/Main.java
with
4 additions
and
9 deletions
src/main/java/de/tudresden/inf/st/pnml/flatter/Main.java
+
4
−
9
View file @
2ef1c174
...
@@ -30,9 +30,8 @@ public class Main {
...
@@ -30,9 +30,8 @@ public class Main {
}
}
// parse the global not flatted petri net
// parse the global not flatted petri net
//
String
pnmlPath = "../pnml-relast-nets/src/main/resources/
serviceTestNets/structureTestNets/service-structure-correc
t.pnml";
*/
// pnmlPath = "../pnml-relast-nets/src/main/resources/
useCaseNets/RoboticUseCase-TopLayer-Lef
t.pnml";
// configPath = "src/main/config/siftConfig.json";
// configPath = "src/main/config/siftConfig.json";
PetriNet
petriNet
=
PnmlParser
.
parsePnml
(
pnmlPath
).
get
(
0
);
PetriNet
petriNet
=
PnmlParser
.
parsePnml
(
pnmlPath
).
get
(
0
);
// read config for analyzer from file
// read config for analyzer from file
...
@@ -189,10 +188,6 @@ public class Main {
...
@@ -189,10 +188,6 @@ public class Main {
for
(
Arc
a
:
petriNet
.
allArcs
())
{
for
(
Arc
a
:
petriNet
.
allArcs
())
{
System
.
out
.
println
(
"Arc: "
+
a
.
getId
()
+
" -- source: "
+
a
.
getSource
().
getId
()
+
" -- target: "
+
a
.
getTarget
().
getId
());
System
.
out
.
println
(
"Arc: "
+
a
.
getId
()
+
" -- source: "
+
a
.
getSource
().
getId
()
+
" -- target: "
+
a
.
getTarget
().
getId
());
if
(
a
.
getNumToolspecific
()
>
0
)
{
// System.out.println("--- toolspecifics: " + a.getToolspecific(0).getFormattedXMLBuffer());
}
}
}
System
.
out
.
println
(
"--------------- T SIGNALS (STATIC)---------------"
);
System
.
out
.
println
(
"--------------- T SIGNALS (STATIC)---------------"
);
...
@@ -217,11 +212,11 @@ public class Main {
...
@@ -217,11 +212,11 @@ public class Main {
// System.out.println("--------------- TOOL SPECIFIC ---------------");
// System.out.println("--------------- TOOL SPECIFIC ---------------");
for
(
Transition
t
:
petriNet
.
allTransitions
())
{
/*
for (Transition t : petriNet.allTransitions()) {
InputSignalTransition ist = t.asInputSignalTransition();
InputSignalTransition ist = t.asInputSignalTransition();
if (ist != null && ist.getNumToolspecific() > 0) {
if (ist != null && ist.getNumToolspecific() > 0) {
//
System.out.println("ToolSpecific: (" + ist.getName().getText() + ") " + ist.getToolspecific(0).getFormattedXMLBuffer().toString());
System.out.println("ToolSpecific: (" + ist.getName().getText() + ") " + ist.getToolspecific(0).getFormattedXMLBuffer().toString());
}
}
}
}
*/
}
}
}
}
\ No newline at end of file
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