diff options
Diffstat (limited to 'subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/NetworkStructureChangeSensitiveNode.java')
-rw-r--r-- | subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/NetworkStructureChangeSensitiveNode.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/NetworkStructureChangeSensitiveNode.java b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/NetworkStructureChangeSensitiveNode.java new file mode 100644 index 00000000..c6ba34c4 --- /dev/null +++ b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/NetworkStructureChangeSensitiveNode.java | |||
@@ -0,0 +1,30 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2019, Tamas Szabo, 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.rete.network; | ||
10 | |||
11 | import tools.refinery.viatra.runtime.rete.network.communication.CommunicationTracker; | ||
12 | |||
13 | /** | ||
14 | * {@link Node}s implementing this interface are sensitive to changes in the dependency graph maintained by the | ||
15 | * {@link CommunicationTracker}. The {@link CommunicationTracker} notifies these nodes whenever the SCC of this node is | ||
16 | * affected by changes to the dependency graph. Depending on whether this node is contained in a recursive group or not, | ||
17 | * it may behave differently, and the {@link NetworkStructureChangeSensitiveNode#networkStructureChanged()} method can | ||
18 | * be used to perform changes in behavior. | ||
19 | * | ||
20 | * @author Tamas Szabo | ||
21 | * @since 2.3 | ||
22 | */ | ||
23 | public interface NetworkStructureChangeSensitiveNode extends Node { | ||
24 | |||
25 | /** | ||
26 | * At the time of the invocation, the dependency graph has already been updated. | ||
27 | */ | ||
28 | public void networkStructureChanged(); | ||
29 | |||
30 | } | ||