Changeset 241 for trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDsequenceStatistics.java
- Timestamp:
- 10/05/11 18:45:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDsequenceStatistics.java
r240 r241 1 1 package de.ugoe.cs.eventbench.commands; 2 2 3 import java.security.InvalidParameterException; 3 4 import java.util.Collection; 4 5 import java.util.List; … … 33 34 @Override 34 35 public void run(List<Object> parameters) { 35 String sequencesName = "sequences";36 if (parameters.size() == 1){36 String sequencesName; 37 try { 37 38 sequencesName = (String) parameters.get(0); 39 } catch (Exception e) { 40 throw new InvalidParameterException(); 38 41 } 39 42 … … 52 55 53 56 sequences = (Collection<List<Event<?>>>) dataObject; 54 Console. traceln("Number of Sequences: " + sequences.size());57 Console.println("Number of Sequences: " + sequences.size()); 55 58 SortedMap<Integer, Integer> lengthMap = new TreeMap<Integer, Integer>(); 56 59 for (List<Event<?>> sequence : sequences) { … … 63 66 } 64 67 for (Entry<Integer, Integer> entry : lengthMap.entrySet()) { 65 Console. traceln("Of length " + entry.getKey() + ": "68 Console.println("Of length " + entry.getKey() + ": " 66 69 + entry.getValue()); 67 70 } … … 75 78 @Override 76 79 public void help() { 77 Console.println("Usage: sequenceStatistics {<sequencesName>}");80 Console.println("Usage: sequenceStatistics <sequencesName>"); 78 81 } 79 82
Note: See TracChangeset
for help on using the changeset viewer.