- Timestamp:
- 06/23/11 11:26:57 (13 years ago)
- Location:
- trunk/EventBenchConsole/src/de/ugoe/cs/eventbench
- Files:
-
- 1 added
- 5 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 -
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDtrainMarkovModel.java
r18 r84 49 49 model.train(sequences); 50 50 if( GlobalDataContainer.getInstance().addData(modelname, model) ) { 51 Console.traceln("Old modeloverwritten");51 Console.traceln("Old data \"" + modelname + "\" overwritten"); 52 52 } 53 53 } else { -
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDtrainPPM.java
r18 r84 40 40 model.train(sequences); 41 41 if( GlobalDataContainer.getInstance().addData(modelname, model) ) { 42 Console.traceln("Old modeloverwritten");42 Console.traceln("Old data \"" + modelname + "\" overwritten"); 43 43 } 44 44 } else { -
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/commands/CMDloadSessionsFromClickstream.java
r68 r84 43 43 } 44 44 45 GlobalDataContainer.getInstance().addData("sequences", parser.getSequences()); 45 if( GlobalDataContainer.getInstance().addData("sequences", parser.getSequences()) ) { 46 Console.traceln("Old data \"" + "sequences" + "\" overwritten"); 47 } 46 48 } 47 49 -
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/commands/CMDparseXML.java
r77 r84 36 36 List<List<WindowsEvent>> sequences = parser.getSequences(); 37 37 38 GlobalDataContainer.getInstance().addData("sequences", sequences); 38 if( GlobalDataContainer.getInstance().addData("sequences", sequences ) ) { 39 Console.traceln("Old data \"" + "sequences" + "\" overwritten"); 40 } 39 41 } 40 42
Note: See TracChangeset
for help on using the changeset viewer.