Changeset 84 for trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDgenerateReplayfile.java
- Timestamp:
- 06/23/11 11:26:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDgenerateReplayfile.java
r1 r84 15 15 @Override 16 16 public void help() { 17 Console.println("Usage: generateReplayfile <filename> ");17 Console.println("Usage: generateReplayfile <filename> {<sequences>}"); 18 18 } 19 19 … … 25 25 } 26 26 String filename = (String) parameters.get(0); 27 String sequencesName = "sequences"; 28 if( parameters.size()==2 ) { 29 sequencesName = (String) parameters.get(0); 30 } 27 31 28 32 List<List<ReplayableEvent<?>>> sequences = null; 29 Object dataObject = GlobalDataContainer.getInstance().getData( "sequences");33 Object dataObject = GlobalDataContainer.getInstance().getData(sequencesName); 30 34 31 35 try { … … 36 40 generator.createLogfileMultipleSessions(sequences, filename); 37 41 } else { 38 Console.traceln("Illegal use of \"sequences\" parameter in the GlobalDataContainer."); 39 Console.traceln("The parameter should always be of type List<List<Event>>!"); 42 Console.printerrln("Loaded data not are not sequences!"); 43 if( sequencesName.equals("sequences") ) { 44 Console.traceln("Illegal use of \"sequences\" parameter in the GlobalDataContainer."); 45 Console.traceln("The parameter should always be of type List<List<Event>>!"); 46 } 40 47 } 41 48 } 42 49 } 43 50 catch(ClassCastException e) { 44 Console.printerrln("Sequences n eed to be loaded first using parseXML");51 Console.printerrln("Sequences not found"); 45 52 } 46 53
Note: See TracChangeset
for help on using the changeset viewer.