diff options
Diffstat (limited to 'subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/RederivableNode.java')
-rw-r--r-- | subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/RederivableNode.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/RederivableNode.java b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/RederivableNode.java new file mode 100644 index 00000000..cae78d37 --- /dev/null +++ b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/RederivableNode.java | |||
@@ -0,0 +1,34 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2016, 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 | /** | ||
12 | * A rederivable node can potentially re-derive tuples after the Rete network has finished the delivery of messages. | ||
13 | * | ||
14 | * @author Tamas Szabo | ||
15 | * @since 1.6 | ||
16 | */ | ||
17 | public interface RederivableNode extends Node, IGroupable { | ||
18 | |||
19 | /** | ||
20 | * The method is called by the {@link ReteContainer} to re-derive tuples after the normal messages have been | ||
21 | * delivered and consumed. The re-derivation process may trigger the creation and delivery of further messages | ||
22 | * and further re-derivation rounds. | ||
23 | */ | ||
24 | public void rederiveOne(); | ||
25 | |||
26 | /** | ||
27 | * Returns true if this node actually runs in DRed mode (not necessarily). | ||
28 | * | ||
29 | * @return true if the node is operating in DRed mode | ||
30 | * @since 2.0 | ||
31 | */ | ||
32 | public boolean isInDRedMode(); | ||
33 | |||
34 | } | ||