aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/store-query/src/main/java/tools/refinery/store/query/view/ForbiddenRelationView.java
blob: c19d92824c586c4523a4ec76e726c6f88302934d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package tools.refinery.store.query.view;

import tools.refinery.store.representation.Symbol;
import tools.refinery.store.representation.TruthValue;
import tools.refinery.store.tuple.Tuple;

public class ForbiddenRelationView extends TuplePreservingRelationView<TruthValue> {
	public ForbiddenRelationView(Symbol<TruthValue> symbol) {
		super(symbol, "forbidden");
	}

	@Override
	public boolean filter(Tuple key, TruthValue value) {
		return !value.may();
	}
}