diff options
Diffstat (limited to 'subprojects/viatra-runtime-matchers/src/main/java/tools/refinery/viatra/runtime/matchers/backend/IUpdateable.java')
-rw-r--r-- | subprojects/viatra-runtime-matchers/src/main/java/tools/refinery/viatra/runtime/matchers/backend/IUpdateable.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime-matchers/src/main/java/tools/refinery/viatra/runtime/matchers/backend/IUpdateable.java b/subprojects/viatra-runtime-matchers/src/main/java/tools/refinery/viatra/runtime/matchers/backend/IUpdateable.java new file mode 100644 index 00000000..baf7144a --- /dev/null +++ b/subprojects/viatra-runtime-matchers/src/main/java/tools/refinery/viatra/runtime/matchers/backend/IUpdateable.java | |||
@@ -0,0 +1,27 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2014, Bergmann Gabor, Istvan Rath and Daniel Varro | ||
3 | * This program and the accompanying materials are made available under the | ||
4 | * terms of the Eclipse Public License v. 2.0 which is available at | ||
5 | * http://www.eclipse.org/legal/epl-v20.html. | ||
6 | * | ||
7 | * SPDX-License-Identifier: EPL-2.0 | ||
8 | *******************************************************************************/ | ||
9 | package tools.refinery.viatra.runtime.matchers.backend; | ||
10 | |||
11 | import tools.refinery.viatra.runtime.matchers.tuple.Tuple; | ||
12 | |||
13 | /** | ||
14 | * Internal interface for the query backend to singal an update to a query result. | ||
15 | * @author Bergmann Gabor | ||
16 | * @since 0.9 | ||
17 | * | ||
18 | */ | ||
19 | public interface IUpdateable { | ||
20 | |||
21 | /** | ||
22 | * This callback method must be free of exceptions, even {@link RuntimeException}s (though not {@link Error}s). | ||
23 | * @param updateElement the tuple that is changed | ||
24 | * @param isInsertion true if the tuple appeared in the result set, false if disappeared from the result set | ||
25 | */ | ||
26 | public void update(Tuple updateElement, boolean isInsertion); | ||
27 | } | ||