Changeset 388 for trunk/EventBenchConsole/src/de/ugoe/cs
- Timestamp:
- 02/20/12 11:48:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDgenerateRandomSequences.java
r241 r388 36 36 int maxLength = Integer.MAX_VALUE; 37 37 long maxIter; 38 boolean validEnd = true; 38 39 try { 39 40 modelname = (String) parameters.get(0); … … 45 46 if (parameters.size() >= 5) { 46 47 maxIter = Long.parseLong((String) parameters.get(5)); 48 } 49 if (parameters.size() >= 6) { 50 validEnd = Boolean.parseBoolean((String) parameters.get(6)); 47 51 } 48 52 } catch (Exception e) { … … 66 70 long numIterations = 0; 67 71 while (sequences.size() < numSessions && numIterations < maxIter) { 68 List<? extends Event<?>> generatedSequence = model.randomSequence(); 72 List<? extends Event<?>> generatedSequence = model.randomSequence( 73 maxLength, validEnd); 69 74 if (generatedSequence.size() >= minLength 70 75 && generatedSequence.size() <= maxLength) { … … 90 95 @Override 91 96 public void help() { 92 Console.println("Usage: generateRandomSequenecs <modelName> <sequencesName> <numSessions> <minLength> <maxLength> {<maxIter>} ");97 Console.println("Usage: generateRandomSequenecs <modelName> <sequencesName> <numSessions> <minLength> <maxLength> {<maxIter>} {<validEnd>}"); 93 98 } 94 99
Note: See TracChangeset
for help on using the changeset viewer.