- Timestamp:
- 06/15/11 16:54:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/WeblogParser.java
r54 r68 14 14 15 15 import de.ugoe.cs.eventbench.web.data.WebEvent; 16 import de.ugoe.cs.util.console.Console; 16 17 17 18 public class WeblogParser { 18 19 19 20 private long timeout; 21 22 private int minLength = 2; 20 23 21 24 private List<List<WebEvent>> sequences; … … 31 34 public List<List<WebEvent>> getSequences() { 32 35 return sequences; 36 } 37 38 public void setTimeout(long timeout) { 39 this.timeout = timeout; 40 } 41 42 public void setMinLength(int minLength) { 43 this.minLength = minLength; 33 44 } 34 45 … … 89 100 } 90 101 } 102 Console.traceln(""+sequences.size()+ " user sequences found"); 103 // prune sequences shorter than min-length 104 for( int i=0; i<sequences.size(); i++ ) { 105 if( sequences.get(i).size()<minLength ) { 106 sequences.remove(i); 107 } 108 } 109 Console.traceln(""+sequences.size()+ " remaining after pruning of sequences shorter than " + minLength); 91 110 } 92 111 }
Note: See TracChangeset
for help on using the changeset viewer.