Changeset 1731 for branches/autoquest-core-tasktrees-alignment
- Timestamp:
- 09/05/14 17:35:23 (10 years ago)
- Location:
- branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/RuleUtils.java
r1702 r1731 226 226 } 227 227 228 229 // Print out the progress 230 static void printProgressPercentage(String message,int count, int size) { 231 if (size > 100) { 232 if ((count % (size / 100) == 0)) { 233 // Console.traceln(Level.INFO,("Thread" + 234 // Thread.currentThread().getName() + ": " + Math.round((float) 235 // count/size*100))+ "%"); 236 System.out.println(message + " in thread" + Thread.currentThread().getName() 237 + ": " + Math.round((float) count / size * 100) + "%"); 238 } 239 } else { 240 // Console.traceln(Level.INFO,("Thread" + 241 // Thread.currentThread().getName() + ": " +Math.round((float) 242 // count/size*100))+ "%"); 243 System.out.println(message + " in thread" + Thread.currentThread().getName() 244 + ": " + Math.round((float) count / size * 100) + "%"); 245 246 } 247 } 248 249 228 250 /** 229 251 * <p> -
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java
r1730 r1731 753 753 } 754 754 755 // Print out the progress756 private static void printProgressPercentage(String message,int count, int size) {757 if (size > 100) {758 if ((count % (size / 100) == 0)) {759 // Console.traceln(Level.INFO,("Thread" +760 // Thread.currentThread().getName() + ": " + Math.round((float)761 // count/size*100))+ "%");762 System.out.println(message + " in thread" + Thread.currentThread().getName()763 + ": " + Math.round((float) count / size * 100) + "%");764 }765 } else {766 // Console.traceln(Level.INFO,("Thread" +767 // Thread.currentThread().getName() + ": " +Math.round((float)768 // count/size*100))+ "%");769 System.out.println(message + " in thread" + Thread.currentThread().getName()770 + ": " + Math.round((float) count / size * 100) + "%");771 772 }773 }774 755 775 756 private class ParallelMatchReplacer implements Runnable { … … 897 878 Match pattern = appData.getMatchseqs().get(i); 898 879 count++; 899 printProgressPercentage("Match finding progress",count, size);880 RuleUtils.printProgressPercentage("Match finding progress",count, size); 900 881 // Skip sequences with more 0 events (scrolls) than other 901 882 // events. … … 944 925 NumberSequence ns1 = appData.getNumberSequences().get(i); 945 926 count++; 946 printProgressPercentage("Aligning Progress",count, size);927 RuleUtils.printProgressPercentage("Aligning Progress",count, size); 947 928 for (int j = 0; j < appData.getNumberSequences().size(); j++) { 948 929 NumberSequence ns2 = appData.getNumberSequences().get(j);
Note: See TracChangeset
for help on using the changeset viewer.