Ignore:
Timestamp:
07/04/11 11:59:17 (13 years ago)
Author:
sherbold
Message:
  • generateReplayfile now assigns a unique Id to each sequences added to the file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/ReplayGenerator.java

    r90 r98  
    1515         
    1616        private IReplayDecorator decorator = null; 
     17         
     18        int sessionId = 1; 
    1719         
    1820        public void createLogfileMultipleSessions(List<List<ReplayableEvent<?>>> sequences, String filename) { 
     
    8587                        throws IOException { 
    8688                if( decorator!=null ) { 
    87                         writer.write(decorator.getSessionHeader()); 
     89                        writer.write(decorator.getSessionHeader(sessionId)); 
    8890                } 
    8991                for( ReplayableEvent<?> currentAction : actions ) { 
     
    9698                } 
    9799                if( decorator!=null ) { 
    98                         writer.write(decorator.getSessionFooter()); 
     100                        writer.write(decorator.getSessionFooter(sessionId)); 
    99101                } 
     102                sessionId++; 
    100103        } 
    101104 
Note: See TracChangeset for help on using the changeset viewer.