diff options
Diffstat (limited to 'subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/communication/PhasedSelector.java')
-rw-r--r-- | subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/communication/PhasedSelector.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/communication/PhasedSelector.java b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/communication/PhasedSelector.java new file mode 100644 index 00000000..41cd8cd3 --- /dev/null +++ b/subprojects/viatra-runtime-rete/src/main/java/tools/refinery/viatra/runtime/rete/network/communication/PhasedSelector.java | |||
@@ -0,0 +1,34 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2017, 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.communication; | ||
10 | |||
11 | /** | ||
12 | * A default message selector that can be used to associate phases to messages. | ||
13 | * | ||
14 | * @author Tamas Szabo | ||
15 | * @since 2.3 | ||
16 | */ | ||
17 | public enum PhasedSelector implements MessageSelector { | ||
18 | |||
19 | /** | ||
20 | * No special distinguishing feature | ||
21 | */ | ||
22 | DEFAULT, | ||
23 | |||
24 | /** | ||
25 | * Inserts and delete-insert monotone change pairs | ||
26 | */ | ||
27 | MONOTONE, | ||
28 | |||
29 | /** | ||
30 | * Deletes | ||
31 | */ | ||
32 | ANTI_MONOTONE | ||
33 | |||
34 | } | ||