Changeset 241 for trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDgenerateRandomSequences.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/CMDgenerateRandomSequences.java
r240 r241 33 33 String sequencesName; 34 34 int numSessions; 35 long maxIter;36 35 int minLength = 0; 37 36 int maxLength = Integer.MAX_VALUE; 37 long maxIter; 38 38 try { 39 39 modelname = (String) parameters.get(0); 40 40 sequencesName = (String) parameters.get(1); 41 41 numSessions = Integer.parseInt((String) parameters.get(2)); 42 minLength = Integer.parseInt((String) parameters.get(3)); 43 maxLength = Integer.parseInt((String) parameters.get(4)); 42 44 maxIter = numSessions * 10; 43 if (parameters.size() >= 4) {44 maxIter = Long.parseLong((String) parameters.get(3));45 }46 45 if (parameters.size() >= 5) { 47 minLength = Integer.parseInt((String) parameters.get(4)); 48 } 49 if (parameters.size() >= 6) { 50 maxLength = Integer.parseInt((String) parameters.get(5)); 46 maxIter = Long.parseLong((String) parameters.get(5)); 51 47 } 52 48 } catch (Exception e) { … … 94 90 @Override 95 91 public void help() { 96 Console.println("Usage: generateRandomSequenecs <modelName> <sequencesName> <numSessions> {<maxIter> <minLength> <maxLength>}");92 Console.println("Usage: generateRandomSequenecs <modelName> <sequencesName> <numSessions> <minLength> <maxLength> {<maxIter>}"); 97 93 } 98 94
Note: See TracChangeset
for help on using the changeset viewer.