From 436d2dd7ccb7e6bfe370ca8d356de91bfc146900 Mon Sep 17 00:00:00 2001 From: peterbro1 Date: Sun, 30 Apr 2023 17:40:41 -0400 Subject: [PATCH 1/6] Rewrite restriction engine --- pom.xml | 2 +- src/main/java/org/cinrc/parser/LTTNode.java | 1 - .../org/cinrc/process/ProcessContainer.java | 2 +- .../java/org/cinrc/process/nodes/Label.java | 6 ++++- .../process/process/ConcurrentProcess.java | 27 ++++++++++++++++--- .../cinrc/process/process/NullProcess.java | 2 +- .../org/cinrc/process/process/Process.java | 15 ++++++++--- .../cinrc/process/process/ProcessImpl.java | 2 +- .../process/process/SummationProcess.java | 4 ++- src/main/java/org/cinrc/util/SetUtil.java | 2 ++ src/test/java/tests/RestrictionTest.java | 8 +++--- 11 files changed, 53 insertions(+), 18 deletions(-) diff --git a/pom.xml b/pom.xml index c87974d..4d5acaf 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.cinrc IRDC - 4.2.4.1 + 4.3.4.1 jar diff --git a/src/main/java/org/cinrc/parser/LTTNode.java b/src/main/java/org/cinrc/parser/LTTNode.java index 41e3c73..cf5d966 100644 --- a/src/main/java/org/cinrc/parser/LTTNode.java +++ b/src/main/java/org/cinrc/parser/LTTNode.java @@ -157,7 +157,6 @@ public void enumerate(boolean recurse) { for (Label l : pc.getActionableLabels()) { if (!(l instanceof LabelKey)) { Process tmp = pc.getProcess().clone(); - pc.act(l); //Act on that label and make a new node with that child process (clone) Process z = pc.getProcess().clone(); addChild(l, z); diff --git a/src/main/java/org/cinrc/process/ProcessContainer.java b/src/main/java/org/cinrc/process/ProcessContainer.java index 7f19c66..dec91f6 100644 --- a/src/main/java/org/cinrc/process/ProcessContainer.java +++ b/src/main/java/org/cinrc/process/ProcessContainer.java @@ -21,7 +21,6 @@ public String prettyString() { public Collection