Changeset 985
- Timestamp:
- 11/15/12 11:28:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/DefaultEventTargetSequenceDetectionRule.java
r972 r985 59 59 (!(parent.getChildren().get(startingIndex) instanceof ISequence))) 60 60 { 61 handleEventTargetSequence 62 (parent, startingIndex,endIndex, builder, nodeFactory, result);61 handleEventTargetSequence(parent, currentEventTarget, startingIndex, 62 endIndex, builder, nodeFactory, result); 63 63 64 64 result.setRuleApplicationStatus … … 66 66 return result; 67 67 } 68 else {68 else if (eventTarget != null) { 69 69 // here a new sequence on a new target begins 70 70 startingIndex = index; 71 71 currentEventTarget = eventTarget; 72 } 73 else { 74 startingIndex = -1; 75 currentEventTarget = null; 72 76 } 73 77 } … … 87 91 (!(parent.getChildren().get(startingIndex) instanceof ISequence)))) 88 92 { 89 handleEventTargetSequence 90 (parent, startingIndex, endIndex,builder, nodeFactory, result);93 handleEventTargetSequence(parent, currentEventTarget, startingIndex, endIndex, 94 builder, nodeFactory, result); 91 95 92 96 result.setRuleApplicationStatus(RuleApplicationStatus.RULE_APPLICATION_FINISHED); … … 134 138 */ 135 139 private void handleEventTargetSequence(ITaskTreeNode parent, 140 IEventTarget target, 136 141 int startIndex, 137 142 int endIndex, … … 141 146 { 142 147 ISequence sequence = nodeFactory.createNewSequence(); 148 builder.setDescription(sequence, "interactions on " + target.getStringIdentifier()); 143 149 144 150 for (int i = startIndex; i <= endIndex; i++) {
Note: See TracChangeset
for help on using the changeset viewer.