diff options
author | 2023-09-19 19:24:29 +0200 | |
---|---|---|
committer | 2023-09-19 19:24:29 +0200 | |
commit | 810b937df6cb1315e0653d763463fd9dc9db9339 (patch) | |
tree | ecbb4d297820fd12460128a057725c7598a3dd38 /subprojects/store-query-interpreter/src/main | |
parent | fix(frontend): typo in EditorTheme (diff) | |
download | refinery-810b937df6cb1315e0653d763463fd9dc9db9339.tar.gz refinery-810b937df6cb1315e0653d763463fd9dc9db9339.tar.zst refinery-810b937df6cb1315e0653d763463fd9dc9db9339.zip |
fix(query-interpreter): functional dependencies
Diffstat (limited to 'subprojects/store-query-interpreter/src/main')
-rw-r--r-- | subprojects/store-query-interpreter/src/main/java/tools/refinery/store/query/interpreter/internal/pquery/Dnf2PQuery.java | 7 |
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 | */ |
6 | package tools.refinery.store.query.interpreter.internal.pquery; | 6 | package tools.refinery.store.query.interpreter.internal.pquery; |
7 | 7 | ||
8 | import tools.refinery.interpreter.matchers.psystem.annotations.ParameterReference; | ||
8 | import tools.refinery.interpreter.matchers.psystem.basicdeferred.*; | 9 | import tools.refinery.interpreter.matchers.psystem.basicdeferred.*; |
9 | import tools.refinery.interpreter.matchers.psystem.basicenumerables.*; | 10 | import tools.refinery.interpreter.matchers.psystem.basicenumerables.*; |
10 | import tools.refinery.interpreter.matchers.psystem.basicenumerables.Connectivity; | 11 | import 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 | } |