source: trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/nodeequality/NodeComparisonRule.java @ 922

Last change on this file since 922 was 922, checked in by sherbold, 12 years ago
  • renaming of packages from de.ugoe.cs.quest to de.ugoe.cs.autoquest
  • Property svn:executable set to *
File size: 935 bytes
Line 
1package de.ugoe.cs.autoquest.tasktrees.nodeequality;
2
3import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode;
4
5/**
6 * <p>
7 * A node comparison rule is used by the {@link NodeEqualityRuleManager} to compare task tree
8 * nodes with each other. It provides one method to be called for a comparison.
9 * </p>
10 *
11 * @version $Revision: $ $Date: 19.02.2012$
12 * @author 2012, last modified by $Author: patrick$
13 */
14public interface NodeComparisonRule {
15
16    /**
17     * <p>
18     * compares two nodes with each other. The result of the method is either a node equality or
19     * null. If it is null, it means, that the rule is not able to correctly compare the two given
20     * nodes
21     * </p>
22     *
23     * @param node1 the first task tree node to compare
24     * @param node2 the second task tree node to compare
25     *
26     * @return as described
27     */
28    public NodeEquality compare(ITaskTreeNode node1, ITaskTreeNode node2);
29
30}
Note: See TracBrowser for help on using the repository browser.