Changeset 1970
- Timestamp:
- 06/17/15 18:28:25 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/utils/MostSimilarTaskDeterminer.java
r1968 r1970 76 76 /** TODO comment */ 77 77 private long comparisonCounter = 0; 78 79 /** TODO comment */ 80 private long effectiveComparisonCounter = 0; 78 81 79 82 /** … … 453 456 454 457 Console.traceln 455 (Level.FINER, "all threads finished, " + comparisonCounter + " comparisons done"); 458 (Level.FINER, "all threads finished, " + comparisonCounter + " comparisons done (" + 459 effectiveComparisonCounter + " effectively)"); 456 460 457 461 if (comparisonCounter != (((tasks.size() - 1) * tasks.size()) / 2)) { … … 565 569 List<SimilarTasks> allMostSimilarTasks = new LinkedList<SimilarTasks>(); 566 570 int counter = 0; 571 int effectiveComparisons = 0; 567 572 568 573 LEFT_HAND_TRAVERSAL: … … 590 595 continue RIGHT_HAND_TRAVERSAL; 591 596 } 597 598 effectiveComparisons++; 592 599 593 600 SimilarTasks similarTasks1 = SimilarTasks.compareTraversals … … 637 644 mostSimilarTasksList.addAll(allMostSimilarTasks); 638 645 comparisonCounter += counter; 646 effectiveComparisonCounter += effectiveComparisons; 639 647 640 648 for (int i = 0; i < unfinishedRunnables.size(); i++) { … … 660 668 } 661 669 else { 670 ITask firstTask1 = traversal1.get(0); 671 ITask firstTask2 = traversal2.get(0); 672 673 if (!comparator.equals(firstTask1, firstTask2)) { 674 return false; 675 } 676 677 ITask lastTask1 = traversal1.get(traversal1.size() - 1); 678 ITask lastTask2 = traversal2.get(traversal2.size() - 1); 679 680 if (!comparator.equals(lastTask1, lastTask2)) { 681 return false; 682 } 683 662 684 return true; 663 685 } … … 665 687 666 688 /** 667 * <p>668 * TODO: comment669 * </p>670 689 * 671 * @param similarTasks1672 * @param similarTasks2673 * @return674 690 */ 675 691 private SimilarTasks getSimilarTasksToPrefer(SimilarTasks similarTasks1, … … 770 786 771 787 /** 772 * <p> 773 * TODO: comment 774 * </p> 775 * 776 * @param first 777 * @param eventCoverage 778 * @param taskModel2 779 * @return 788 * 780 789 */ 781 790 private int getTaskMetric(ITask task, TaskMetric metric) { … … 807 816 808 817 /** 809 * <p> 810 * TODO: comment 811 * </p> 812 * 813 * @param first 814 * @return 818 * 815 819 */ 816 820 private long getFirstTimestamp(ITask task) {
Note: See TracChangeset
for help on using the changeset viewer.