aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/store-query-interpreter/src/main/java/tools/refinery/store/query/interpreter/internal/pquery/Dnf2PQuery.java
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/store-query-interpreter/src/main/java/tools/refinery/store/query/interpreter/internal/pquery/Dnf2PQuery.java')
-rw-r--r--subprojects/store-query-interpreter/src/main/java/tools/refinery/store/query/interpreter/internal/pquery/Dnf2PQuery.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/subprojects/store-query-interpreter/src/main/java/tools/refinery/store/query/interpreter/internal/pquery/Dnf2PQuery.java b/subprojects/store-query-interpreter/src/main/java/tools/refinery/store/query/interpreter/internal/pquery/Dnf2PQuery.java
index 73ce4043..24205cf4 100644
--- a/subprojects/store-query-interpreter/src/main/java/tools/refinery/store/query/interpreter/internal/pquery/Dnf2PQuery.java
+++ b/subprojects/store-query-interpreter/src/main/java/tools/refinery/store/query/interpreter/internal/pquery/Dnf2PQuery.java
@@ -5,6 +5,7 @@
5 */ 5 */
6package tools.refinery.store.query.interpreter.internal.pquery; 6package tools.refinery.store.query.interpreter.internal.pquery;
7 7
8import tools.refinery.interpreter.matchers.psystem.annotations.ParameterReference;
8import tools.refinery.interpreter.matchers.psystem.basicdeferred.*; 9import tools.refinery.interpreter.matchers.psystem.basicdeferred.*;
9import tools.refinery.interpreter.matchers.psystem.basicenumerables.*; 10import tools.refinery.interpreter.matchers.psystem.basicenumerables.*;
10import tools.refinery.interpreter.matchers.psystem.basicenumerables.Connectivity; 11import tools.refinery.interpreter.matchers.psystem.basicenumerables.Connectivity;
@@ -80,10 +81,12 @@ public class Dnf2PQuery {
80 for (var functionalDependency : dnfQuery.getFunctionalDependencies()) { 81 for (var functionalDependency : dnfQuery.getFunctionalDependencies()) {
81 var functionalDependencyAnnotation = new PAnnotation("FunctionalDependency"); 82 var functionalDependencyAnnotation = new PAnnotation("FunctionalDependency");
82 for (var forEachVariable : functionalDependency.forEach()) { 83 for (var forEachVariable : functionalDependency.forEach()) {
83 functionalDependencyAnnotation.addAttribute("forEach", forEachVariable.getUniqueName()); 84 var reference = new ParameterReference(forEachVariable.getUniqueName());
85 functionalDependencyAnnotation.addAttribute("forEach", reference);
84 } 86 }
85 for (var uniqueVariable : functionalDependency.unique()) { 87 for (var uniqueVariable : functionalDependency.unique()) {
86 functionalDependencyAnnotation.addAttribute("unique", uniqueVariable.getUniqueName()); 88 var reference = new ParameterReference(uniqueVariable.getUniqueName());
89 functionalDependencyAnnotation.addAttribute("unique", reference);
87 } 90 }
88 pQuery.addAnnotation(functionalDependencyAnnotation); 91 pQuery.addAnnotation(functionalDependencyAnnotation);
89 } 92 }