diff options
Diffstat (limited to 'subprojects/store/src/main/java/tools/refinery/store/model/internal/NullaryVersionedInterpretation.java')
-rw-r--r-- | subprojects/store/src/main/java/tools/refinery/store/model/internal/NullaryVersionedInterpretation.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/subprojects/store/src/main/java/tools/refinery/store/model/internal/NullaryVersionedInterpretation.java b/subprojects/store/src/main/java/tools/refinery/store/model/internal/NullaryVersionedInterpretation.java new file mode 100644 index 00000000..4a8e6752 --- /dev/null +++ b/subprojects/store/src/main/java/tools/refinery/store/model/internal/NullaryVersionedInterpretation.java | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
6 | package tools.refinery.store.model.internal; | ||
7 | |||
8 | import tools.refinery.store.map.Cursor; | ||
9 | import tools.refinery.store.map.VersionedMap; | ||
10 | import tools.refinery.store.representation.Symbol; | ||
11 | import tools.refinery.store.tuple.Tuple; | ||
12 | |||
13 | class NullaryVersionedInterpretation<T> extends VersionedInterpretation<T> { | ||
14 | public NullaryVersionedInterpretation(ModelImpl model, Symbol<T> symbol, VersionedMap<Tuple, T> map) { | ||
15 | super(model, symbol, map); | ||
16 | } | ||
17 | |||
18 | @Override | ||
19 | public Cursor<Tuple, T> getAdjacent(int slot, int node) { | ||
20 | throw new IllegalArgumentException("Invalid index: " + slot); | ||
21 | } | ||
22 | |||
23 | @Override | ||
24 | public int getAdjacentSize(int slot, int node) { | ||
25 | throw new IllegalArgumentException("Invalid index: " + slot); | ||
26 | } | ||
27 | } | ||