diff options
author | nagilooh <ficsorattila96@gmail.com> | 2023-08-25 17:14:56 +0200 |
---|---|---|
committer | nagilooh <ficsorattila96@gmail.com> | 2023-08-25 17:14:56 +0200 |
commit | 3796818d5b8754cfc9cdcbf61b54af93670ef42b (patch) | |
tree | 3db39be3facc99839c832e581fd5051a80940dcc | |
parent | Move equivalence checking to new method (diff) | |
download | refinery-3796818d5b8754cfc9cdcbf61b54af93670ef42b.tar.gz refinery-3796818d5b8754cfc9cdcbf61b54af93670ef42b.tar.zst refinery-3796818d5b8754cfc9cdcbf61b54af93670ef42b.zip |
Add missing copyright headers
8 files changed, 46 insertions, 16 deletions
diff --git a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/ActionVariable.java b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/ActionVariable.java index 51078d15..92de565d 100644 --- a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/ActionVariable.java +++ b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/ActionVariable.java | |||
@@ -1,3 +1,8 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
1 | package tools.refinery.store.dse.internal.action; | 6 | package tools.refinery.store.dse.internal.action; |
2 | 7 | ||
3 | import tools.refinery.store.tuple.Tuple; | 8 | import tools.refinery.store.tuple.Tuple; |
diff --git a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/ActivationVariable.java b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/ActivationVariable.java index 148d4156..6b4c6340 100644 --- a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/ActivationVariable.java +++ b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/ActivationVariable.java | |||
@@ -1,3 +1,8 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
1 | package tools.refinery.store.dse.internal.action; | 6 | package tools.refinery.store.dse.internal.action; |
2 | 7 | ||
3 | import tools.refinery.store.model.Model; | 8 | import tools.refinery.store.model.Model; |
diff --git a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/AtomicAction.java b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/AtomicAction.java index 470278ae..a8f10bca 100644 --- a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/AtomicAction.java +++ b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/AtomicAction.java | |||
@@ -1,3 +1,8 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
1 | package tools.refinery.store.dse.internal.action; | 6 | package tools.refinery.store.dse.internal.action; |
2 | 7 | ||
3 | import tools.refinery.store.model.Model; | 8 | import tools.refinery.store.model.Model; |
diff --git a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/DeleteAction.java b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/DeleteAction.java index 9fa77df3..9900390f 100644 --- a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/DeleteAction.java +++ b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/DeleteAction.java | |||
@@ -1,3 +1,8 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
1 | package tools.refinery.store.dse.internal.action; | 6 | package tools.refinery.store.dse.internal.action; |
2 | 7 | ||
3 | import tools.refinery.store.dse.DesignSpaceExplorationAdapter; | 8 | import tools.refinery.store.dse.DesignSpaceExplorationAdapter; |
diff --git a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/InsertAction.java b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/InsertAction.java index 2335abad..90fcc5ac 100644 --- a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/InsertAction.java +++ b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/InsertAction.java | |||
@@ -1,3 +1,8 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
1 | package tools.refinery.store.dse.internal.action; | 6 | package tools.refinery.store.dse.internal.action; |
2 | 7 | ||
3 | import tools.refinery.store.model.Interpretation; | 8 | import tools.refinery.store.model.Interpretation; |
diff --git a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/NewItemVariable.java b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/NewItemVariable.java index 65b1f544..cbb9697e 100644 --- a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/NewItemVariable.java +++ b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/NewItemVariable.java | |||
@@ -1,3 +1,8 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
1 | package tools.refinery.store.dse.internal.action; | 6 | package tools.refinery.store.dse.internal.action; |
2 | 7 | ||
3 | import tools.refinery.store.dse.DesignSpaceExplorationAdapter; | 8 | import tools.refinery.store.dse.DesignSpaceExplorationAdapter; |
diff --git a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/TransformationAction.java b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/TransformationAction.java index 50387f53..adc4df9e 100644 --- a/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/TransformationAction.java +++ b/subprojects/store-dse/src/main/java/tools/refinery/store/dse/internal/action/TransformationAction.java | |||
@@ -1,3 +1,8 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
1 | package tools.refinery.store.dse.internal.action; | 6 | package tools.refinery.store.dse.internal.action; |
2 | 7 | ||
3 | import tools.refinery.store.model.Model; | 8 | import tools.refinery.store.model.Model; |
diff --git a/subprojects/store-dse/src/test/java/tools/refinery/store/dse/ActionEqualsTest.java b/subprojects/store-dse/src/test/java/tools/refinery/store/dse/ActionEqualsTest.java index 1489b413..d4a05d12 100644 --- a/subprojects/store-dse/src/test/java/tools/refinery/store/dse/ActionEqualsTest.java +++ b/subprojects/store-dse/src/test/java/tools/refinery/store/dse/ActionEqualsTest.java | |||
@@ -1,3 +1,8 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
1 | package tools.refinery.store.dse; | 6 | package tools.refinery.store.dse; |
2 | 7 | ||
3 | import org.junit.jupiter.api.BeforeAll; | 8 | import org.junit.jupiter.api.BeforeAll; |
@@ -7,46 +12,37 @@ import tools.refinery.store.dse.strategy.DepthFirstStrategy; | |||
7 | import tools.refinery.store.model.Model; | 12 | import tools.refinery.store.model.Model; |
8 | import tools.refinery.store.model.ModelStore; | 13 | import tools.refinery.store.model.ModelStore; |
9 | import tools.refinery.store.query.dnf.Query; | 14 | import tools.refinery.store.query.dnf.Query; |
10 | import tools.refinery.store.query.dnf.RelationalQuery; | ||
11 | import tools.refinery.store.query.viatra.ViatraModelQueryAdapter; | 15 | import tools.refinery.store.query.viatra.ViatraModelQueryAdapter; |
12 | import tools.refinery.store.query.view.AnySymbolView; | ||
13 | import tools.refinery.store.query.view.KeyOnlyView; | 16 | import tools.refinery.store.query.view.KeyOnlyView; |
14 | import tools.refinery.store.representation.Symbol; | 17 | import tools.refinery.store.representation.Symbol; |
15 | import tools.refinery.store.representation.TruthValue; | ||
16 | 18 | ||
17 | import static org.junit.jupiter.api.Assertions.*; | 19 | import static org.junit.jupiter.api.Assertions.assertFalse; |
20 | import static org.junit.jupiter.api.Assertions.assertTrue; | ||
18 | 21 | ||
19 | public class ActionEqualsTest { | 22 | public class ActionEqualsTest { |
20 | 23 | ||
21 | private static Model model; | 24 | private static Model model; |
22 | private static DesignSpaceExplorationAdapter dseAdapter; | ||
23 | private static Symbol<Boolean> type1; | 25 | private static Symbol<Boolean> type1; |
24 | private static Symbol<Boolean> type2; | ||
25 | private static Symbol<TruthValue> type3; | ||
26 | private static Symbol<Boolean> relation1; | 26 | private static Symbol<Boolean> relation1; |
27 | private static Symbol<Boolean> relation2; | 27 | private static Symbol<Boolean> relation2; |
28 | private static RelationalQuery precondition1; | ||
29 | private static RelationalQuery precondition2; | ||
30 | 28 | ||
31 | @BeforeAll | 29 | @BeforeAll |
32 | public static void init() { | 30 | public static void init() { |
33 | type1 = Symbol.of("type1", 1); | 31 | type1 = Symbol.of("type1", 1); |
34 | type2 = Symbol.of("type2", 1); | ||
35 | type3 = Symbol.of("type3", 1, TruthValue.class); | ||
36 | relation1 = Symbol.of("relation1", 2); | 32 | relation1 = Symbol.of("relation1", 2); |
37 | relation2 = Symbol.of("relation2", 2); | 33 | relation2 = Symbol.of("relation2", 2); |
38 | AnySymbolView type1View = new KeyOnlyView<>(type1); | 34 | var type1View = new KeyOnlyView<>(type1); |
39 | precondition1 = Query.of("CreateClassPrecondition", | 35 | var precondition1 = Query.of("CreateClassPrecondition", |
40 | (builder, model) -> builder.clause( | 36 | (builder, model) -> builder.clause( |
41 | type1View.call(model) | 37 | type1View.call(model) |
42 | )); | 38 | )); |
43 | 39 | ||
44 | precondition2 = Query.of("CreateFeaturePrecondition", | 40 | var precondition2 = Query.of("CreateFeaturePrecondition", |
45 | (builder, model) -> builder.clause( | 41 | (builder, model) -> builder.clause( |
46 | type1View.call(model) | 42 | type1View.call(model) |
47 | )); | 43 | )); |
48 | var store = ModelStore.builder() | 44 | var store = ModelStore.builder() |
49 | .symbols(type1, type2, type3, relation2, relation1) | 45 | .symbols(type1, relation2, relation1) |
50 | .with(ViatraModelQueryAdapter.builder() | 46 | .with(ViatraModelQueryAdapter.builder() |
51 | .queries(precondition1, precondition2)) | 47 | .queries(precondition1, precondition2)) |
52 | .with(DesignSpaceExplorationAdapter.builder() | 48 | .with(DesignSpaceExplorationAdapter.builder() |
@@ -55,7 +51,6 @@ public class ActionEqualsTest { | |||
55 | 51 | ||
56 | 52 | ||
57 | model = store.createEmptyModel(); | 53 | model = store.createEmptyModel(); |
58 | dseAdapter = model.getAdapter(DesignSpaceExplorationAdapter.class); | ||
59 | } | 54 | } |
60 | 55 | ||
61 | @Test | 56 | @Test |