Changeset 557 for trunk/quest-core-tasktrees/src/main/java/de/ugoe/cs/quest/tasktrees/nodeequality/NodeComparisonRule.java
- Timestamp:
- 08/17/12 08:33:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-tasktrees/src/main/java/de/ugoe/cs/quest/tasktrees/nodeequality/NodeComparisonRule.java
r439 r557 1 //-------------------------------------------------------------------------------------------------2 1 // Module : $RCSfile: EqualityRule.java,v $ 3 2 // Version : $Revision: 0.0 $ $Author: patrick $ $Date: 19.02.2012 $ … … 5 4 // Creation : 2012 by patrick 6 5 // Copyright : Patrick Harms, 2012 7 //------------------------------------------------------------------------------------------------- 6 8 7 package de.ugoe.cs.quest.tasktrees.nodeequality; 9 8 10 import de.ugoe.cs.quest.tasktrees.treeifc. TaskTreeNode;9 import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNode; 11 10 12 //-------------------------------------------------------------------------------------------------13 11 /** 14 * TODO comment 12 * <p> 13 * A node comparison rule is used by the {@link NodeEqualityRuleManager} to compare task tree 14 * nodes with each other. It provides one method to be called for a comparison. 15 * </p> 15 16 * 16 17 * @version $Revision: $ $Date: 19.02.2012$ 17 18 * @author 2012, last modified by $Author: patrick$ 18 19 */ 19 //------------------------------------------------------------------------------------------------- 20 public interface NodeComparisonRule 21 { 20 public interface NodeComparisonRule { 22 21 23 //----------------------------------------------------------------------------------------------- 24 /** 25 * compares two nodes with each other. The result of the method is either a node equality or 26 * null. If it is null, it means, that the rule is not able to correctly compare the two 27 * given nodes 28 */ 29 //----------------------------------------------------------------------------------------------- 30 public NodeEquality compare(TaskTreeNode node1, TaskTreeNode node2); 31 22 /** 23 * <p> 24 * compares two nodes with each other. The result of the method is either a node equality or 25 * null. If it is null, it means, that the rule is not able to correctly compare the two given 26 * nodes 27 * </p> 28 * 29 * @param node1 the first task tree node to compare 30 * @param node2 the second task tree node to compare 31 * 32 * @return as described 33 */ 34 public NodeEquality compare(ITaskTreeNode node1, ITaskTreeNode node2); 35 32 36 }
Note: See TracChangeset
for help on using the changeset viewer.