Changeset 1146 for trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/taskequality/TaskComparisonRule.java
- Timestamp:
- 04/04/13 16:06:07 (11 years ago)
- Location:
- trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/taskequality
- Files:
-
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/taskequality/TaskComparisonRule.java
r1125 r1146 13 13 // limitations under the License. 14 14 15 package de.ugoe.cs.autoquest.tasktrees. nodeequality;15 package de.ugoe.cs.autoquest.tasktrees.taskequality; 16 16 17 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask TreeNode;17 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 18 18 19 19 /** 20 20 * <p> 21 * A node comparison rule is used by the {@link NodeEqualityRuleManager} to compare task tree22 * nodes with each other. It provides one methodto be called for a comparison.21 * A task comparison rule is used by the {@link TaskEqualityRuleManager} to compare tasks with 22 * each other. It provides several methods to be called for a comparison. 23 23 * </p> 24 24 * … … 26 26 * @author 2012, last modified by $Author: patrick$ 27 27 */ 28 public interface NodeComparisonRule {28 public interface TaskComparisonRule { 29 29 30 30 /** 31 31 * <p> 32 * checks if the rule is applicable for comparing the two provided nodes32 * checks if the rule is applicable for comparing the two provided tasks 33 33 * </p> 34 34 * 35 * @param node1 the first task tree nodeto compare36 * @param node2 the second task tree nodeto compare35 * @param task1 the first task to compare 36 * @param task2 the second task to compare 37 37 * 38 38 * @return true, if the rule is applicable, false else 39 39 */ 40 public boolean isApplicable(ITask TreeNode node1, ITaskTreeNode node2);40 public boolean isApplicable(ITask task1, ITask task2); 41 41 42 42 /** 43 43 * <p> 44 * checks, if the provided nodes are lexically equal44 * checks, if the provided tasks are lexically equal 45 45 * </p> 46 46 * 47 * @param node1 the first task tree nodeto compare48 * @param node2 the second task tree nodeto compare47 * @param task1 the first task to compare 48 * @param task2 the second task to compare 49 49 * 50 * @return true, if the nodes are equal, false else50 * @return true, if the tasks are equal, false else 51 51 */ 52 public boolean areLexicallyEqual(ITask TreeNode node1, ITaskTreeNode node2);52 public boolean areLexicallyEqual(ITask task1, ITask task2); 53 53 54 54 /** 55 55 * <p> 56 * checks, if the provided nodes are syntactically equal56 * checks, if the provided tasks are syntactically equal 57 57 * </p> 58 58 * 59 * @param node1 the first task tree nodeto compare60 * @param node2 the second task tree nodeto compare59 * @param task1 the first task to compare 60 * @param task2 the second task to compare 61 61 * 62 * @return true, if the nodes are equal, false else62 * @return true, if the tasks are equal, false else 63 63 */ 64 public boolean areSyntacticallyEqual(ITask TreeNode node1, ITaskTreeNode node2);64 public boolean areSyntacticallyEqual(ITask task1, ITask task2); 65 65 66 66 /** 67 67 * <p> 68 * checks, if the provided nodes are semantically equal68 * checks, if the provided tasks are semantically equal 69 69 * </p> 70 70 * 71 * @param node1 the first task tree nodeto compare72 * @param node2 the second task tree nodeto compare71 * @param task1 the first task to compare 72 * @param task2 the second task to compare 73 73 * 74 * @return true, if the nodes are equal, false else74 * @return true, if the tasks are equal, false else 75 75 */ 76 public boolean areSemanticallyEqual(ITask TreeNode node1, ITaskTreeNode node2);76 public boolean areSemanticallyEqual(ITask task1, ITask task2); 77 77 78 78 /** 79 79 * <p> 80 * compares two nodes with each other. The result of the method is either a nodeequality or80 * compares two tasks with each other. The result of the method is either a task equality or 81 81 * null. If it is null, it means, that the rule is not able to correctly compare the two given 82 * nodes82 * tasks 83 83 * </p> 84 84 * 85 * @param node1 the first task tree nodeto compare86 * @param node2 the second task tree nodeto compare85 * @param task1 the first task to compare 86 * @param task2 the second task to compare 87 87 * 88 88 * @return as described 89 89 */ 90 public NodeEquality compare(ITaskTreeNode node1, ITaskTreeNode node2);90 public TaskEquality compare(ITask task1, ITask task2); 91 91 92 92 }
Note: See TracChangeset
for help on using the changeset viewer.