diff options
Diffstat (limited to 'subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/matchers/psystem/aggregations/AbstractMemorylessAggregationOperator.java')
-rw-r--r-- | subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/matchers/psystem/aggregations/AbstractMemorylessAggregationOperator.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/matchers/psystem/aggregations/AbstractMemorylessAggregationOperator.java b/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/matchers/psystem/aggregations/AbstractMemorylessAggregationOperator.java new file mode 100644 index 00000000..63a37bbe --- /dev/null +++ b/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/matchers/psystem/aggregations/AbstractMemorylessAggregationOperator.java | |||
@@ -0,0 +1,31 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2016, Gabor Bergmann, IncQueryLabs Ltd. | ||
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.psystem.aggregations; | ||
10 | |||
11 | /** | ||
12 | * | ||
13 | * An aggregation operator that does not store interim results beyond the final aggregated value. | ||
14 | * @author Gabor Bergmann | ||
15 | * @since 1.4 | ||
16 | */ | ||
17 | public abstract class AbstractMemorylessAggregationOperator<Domain, AggregateResult> | ||
18 | implements IMultisetAggregationOperator<Domain, AggregateResult, AggregateResult> | ||
19 | { | ||
20 | |||
21 | @Override | ||
22 | public AggregateResult getAggregate(AggregateResult result) { | ||
23 | return result; | ||
24 | } | ||
25 | |||
26 | @Override | ||
27 | public AggregateResult clone(AggregateResult original) { | ||
28 | return original; | ||
29 | } | ||
30 | |||
31 | } | ||