Ignore:
Timestamp:
04/03/12 10:23:34 (13 years ago)
Author:
sherbold
Message:
  • sequences generated with the command generateRandomSequences now start with the START symbol and in case validEnd is true, end with the END symbol
File:
1 edited

Legend:

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

    r388 r409  
    2828         * @see de.ugoe.cs.util.console.Command#run(java.util.List) 
    2929         */ 
     30        @SuppressWarnings("unchecked") 
    3031        @Override 
    3132        public void run(List<Object> parameters) { 
     
    7475                        if (generatedSequence.size() >= minLength 
    7576                                        && generatedSequence.size() <= maxLength) { 
     77                                ((List<Event<?>>) generatedSequence).add(0, Event.STARTEVENT); 
     78                                if( validEnd ) { 
     79                                        ((List<Event<?>>) generatedSequence).add(Event.ENDEVENT); 
     80                                } 
    7681                                sequences.add(generatedSequence); 
    7782                        } 
Note: See TracChangeset for help on using the changeset viewer.