1 | // Copyright 2012 Georg-August-Universität Göttingen, Germany |
---|
2 | // |
---|
3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
---|
4 | // you may not use this file except in compliance with the License. |
---|
5 | // You may obtain a copy of the License at |
---|
6 | // |
---|
7 | // http://www.apache.org/licenses/LICENSE-2.0 |
---|
8 | // |
---|
9 | // Unless required by applicable law or agreed to in writing, software |
---|
10 | // distributed under the License is distributed on an "AS IS" BASIS, |
---|
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
12 | // See the License for the specific language governing permissions and |
---|
13 | // limitations under the License. |
---|
14 | |
---|
15 | package de.ugoe.cs.autoquest.tasktrees.nodeequality; |
---|
16 | |
---|
17 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode; |
---|
18 | |
---|
19 | /** |
---|
20 | * <p> |
---|
21 | * A node comparison rule is used by the {@link NodeEqualityRuleManager} to compare task tree |
---|
22 | * nodes with each other. It provides one method to be called for a comparison. |
---|
23 | * </p> |
---|
24 | * |
---|
25 | * @version $Revision: $ $Date: 19.02.2012$ |
---|
26 | * @author 2012, last modified by $Author: patrick$ |
---|
27 | */ |
---|
28 | public interface NodeComparisonRule { |
---|
29 | |
---|
30 | /** |
---|
31 | * <p> |
---|
32 | * compares two nodes with each other. The result of the method is either a node equality or |
---|
33 | * null. If it is null, it means, that the rule is not able to correctly compare the two given |
---|
34 | * nodes |
---|
35 | * </p> |
---|
36 | * |
---|
37 | * @param node1 the first task tree node to compare |
---|
38 | * @param node2 the second task tree node to compare |
---|
39 | * |
---|
40 | * @return as described |
---|
41 | */ |
---|
42 | public NodeEquality compare(ITaskTreeNode node1, ITaskTreeNode node2); |
---|
43 | |
---|
44 | } |
---|