diff options
author | 2021-08-16 04:19:04 +0200 | |
---|---|---|
committer | 2021-08-16 04:19:04 +0200 | |
commit | 12d34af7495b195a1ee7fa9adb00ee94af5401b6 (patch) | |
tree | 573ad663835f9635d462c1caf7fd2ce9d3f25c07 /model-data | |
parent | Update on relationalViews constructor visibility (diff) | |
download | refinery-12d34af7495b195a1ee7fa9adb00ee94af5401b6.tar.gz refinery-12d34af7495b195a1ee7fa9adb00ee94af5401b6.tar.zst refinery-12d34af7495b195a1ee7fa9adb00ee94af5401b6.zip |
Added a simple RelationView for sets
Diffstat (limited to 'model-data')
-rw-r--r-- | model-data/src/main/java/org/eclipse/viatra/solver/data/query/view/TupleRelationView.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/model-data/src/main/java/org/eclipse/viatra/solver/data/query/view/TupleRelationView.java b/model-data/src/main/java/org/eclipse/viatra/solver/data/query/view/TupleRelationView.java new file mode 100644 index 00000000..2e4e286f --- /dev/null +++ b/model-data/src/main/java/org/eclipse/viatra/solver/data/query/view/TupleRelationView.java | |||
@@ -0,0 +1,17 @@ | |||
1 | package org.eclipse.viatra.solver.data.query.view; | ||
2 | |||
3 | import org.eclipse.viatra.solver.data.model.Model; | ||
4 | import org.eclipse.viatra.solver.data.model.Tuple; | ||
5 | import org.eclipse.viatra.solver.data.model.representation.Relation; | ||
6 | |||
7 | public class TupleRelationView extends FilteredRelationView<Boolean>{ | ||
8 | |||
9 | public TupleRelationView(Model model, Relation<Boolean> representation) { | ||
10 | super(model, representation, (k,v)->true); | ||
11 | } | ||
12 | @Override | ||
13 | protected boolean filter(Tuple key, Boolean value) { | ||
14 | return true; | ||
15 | } | ||
16 | |||
17 | } | ||