aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/NetworkStructureChangeSensitiveNode.java
blob: c6ba34c4f12ad93ead1b83751e2c16063045698d (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
28
29
30
/*******************************************************************************
 * Copyright (c) 2010-2019, Tamas Szabo, 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.rete.network;

import tools.refinery.viatra.runtime.rete.network.communication.CommunicationTracker;

/**
 * {@link Node}s implementing this interface are sensitive to changes in the dependency graph maintained by the
 * {@link CommunicationTracker}. The {@link CommunicationTracker} notifies these nodes whenever the SCC of this node is
 * affected by changes to the dependency graph. Depending on whether this node is contained in a recursive group or not,
 * it may behave differently, and the {@link NetworkStructureChangeSensitiveNode#networkStructureChanged()} method can
 * be used to perform changes in behavior.
 * 
 * @author Tamas Szabo
 * @since 2.3
 */
public interface NetworkStructureChangeSensitiveNode extends Node {

    /**
     * At the time of the invocation, the dependency graph has already been updated.
     */
    public void networkStructureChanged();

}