blob: 4a8e675265abad89fd36725324c48c0f655d25e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.store.model.internal;
import tools.refinery.store.map.Cursor;
import tools.refinery.store.map.VersionedMap;
import tools.refinery.store.representation.Symbol;
import tools.refinery.store.tuple.Tuple;
class NullaryVersionedInterpretation<T> extends VersionedInterpretation<T> {
public NullaryVersionedInterpretation(ModelImpl model, Symbol<T> symbol, VersionedMap<Tuple, T> map) {
super(model, symbol, map);
}
@Override
public Cursor<Tuple, T> getAdjacent(int slot, int node) {
throw new IllegalArgumentException("Invalid index: " + slot);
}
@Override
public int getAdjacentSize(int slot, int node) {
throw new IllegalArgumentException("Invalid index: " + slot);
}
}
|