diff options
Diffstat (limited to 'subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/misc/DefaultDeltaMonitor.java')
-rw-r--r-- | subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/misc/DefaultDeltaMonitor.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/misc/DefaultDeltaMonitor.java b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/misc/DefaultDeltaMonitor.java new file mode 100644 index 00000000..efba3117 --- /dev/null +++ b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/misc/DefaultDeltaMonitor.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2004-2010 Gabor Bergmann 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 | |||
10 | package tools.refinery.viatra.runtime.rete.misc; | ||
11 | |||
12 | import tools.refinery.viatra.runtime.matchers.tuple.Tuple; | ||
13 | import tools.refinery.viatra.runtime.rete.network.Network; | ||
14 | import tools.refinery.viatra.runtime.rete.network.ReteContainer; | ||
15 | |||
16 | /** | ||
17 | * Default configuration for DeltaMonitor. | ||
18 | * | ||
19 | * @author Gabor Bergmann | ||
20 | * | ||
21 | */ | ||
22 | public class DefaultDeltaMonitor extends DeltaMonitor<Tuple> { | ||
23 | |||
24 | /** | ||
25 | * @param reteContainer | ||
26 | */ | ||
27 | public DefaultDeltaMonitor(ReteContainer reteContainer) { | ||
28 | super(reteContainer); | ||
29 | } | ||
30 | |||
31 | /** | ||
32 | * @param network | ||
33 | */ | ||
34 | public DefaultDeltaMonitor(Network network) { | ||
35 | super(network.getHeadContainer()); | ||
36 | } | ||
37 | |||
38 | @Override | ||
39 | public Tuple statelessConvert(Tuple tuple) { | ||
40 | return tuple; | ||
41 | } | ||
42 | |||
43 | } | ||