blob: 7be27d564d885627e6eb6778c37bd6ccf2e67314 (
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
|
/*******************************************************************************
* Copyright (c) 2010-2015, Bergmann Gabor, Istvan Rath and Daniel Varro
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-v20.html.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package tools.refinery.viatra.runtime.matchers.context;
import tools.refinery.viatra.runtime.matchers.tuple.Tuple;
/**
* Listens for changes in the runtime context.
* @author Bergmann Gabor
*
*/
public interface IQueryRuntimeContextListener {
/**
* The given tuple was inserted into or removed from the input relation indicated by the given key.
* @param key the key identifying the input relation that was updated
* @param updateTuple the tuple that was inserted or removed
* @param isInsertion true if it was an insertion, false otherwise.
*/
public void update(IInputKey key, Tuple updateTuple, boolean isInsertion);
}
|