diff options
Diffstat (limited to 'subprojects/viatra-runtime-matchers/src/main/java/tools/refinery/viatra/runtime/matchers/util/resumable/Resumable.java')
-rw-r--r-- | subprojects/viatra-runtime-matchers/src/main/java/tools/refinery/viatra/runtime/matchers/util/resumable/Resumable.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime-matchers/src/main/java/tools/refinery/viatra/runtime/matchers/util/resumable/Resumable.java b/subprojects/viatra-runtime-matchers/src/main/java/tools/refinery/viatra/runtime/matchers/util/resumable/Resumable.java new file mode 100644 index 00000000..2861df20 --- /dev/null +++ b/subprojects/viatra-runtime-matchers/src/main/java/tools/refinery/viatra/runtime/matchers/util/resumable/Resumable.java | |||
@@ -0,0 +1,27 @@ | |||
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.matchers.util.resumable; | ||
10 | |||
11 | /** | ||
12 | * A resumable lazily folds its state towards higher timestamps. Folding shall be done in the increasing order of | ||
13 | * timestamps, and it shall be interrupted after each step. The resumable can then be instructed to resume the folding, | ||
14 | * one step at a time. | ||
15 | * | ||
16 | * @author Tamas Szabo | ||
17 | * @since 2.4 | ||
18 | */ | ||
19 | public interface Resumable<Timestamp extends Comparable<Timestamp>> { | ||
20 | |||
21 | /** | ||
22 | * Returns the smallest timestamp where lazy folding shall be resumed, or null if there is no more folding to do in this | ||
23 | * resumable. | ||
24 | */ | ||
25 | public Timestamp getResumableTimestamp(); | ||
26 | |||
27 | } | ||