Ignore:
Timestamp:
02/20/12 11:40:29 (12 years ago)
Author:
sherbold
Message:
  • added method randomSequence(maxLength,validEnd) to the interface de.ugoe.cs.eventbench.models.IStochasticProcess (and implementing classes) to allow optimized generation of sessions of a pre-defined length.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/IStochasticProcess.java

    r342 r386  
    5959         */ 
    6060        public List<? extends Event<?>> randomSequence(); 
     61 
     62        /** 
     63         * <p> 
     64         * Generates a random sequence of events. The sequence starts with 
     65         * {@link Event#STARTEVENT} and finishes with 
     66         * <ul> 
     67         * <li>{@link Event#ENDEVENT} if validEnd==true.</li> 
     68         * <li>b) if a generated sequences reaches {@link Event#ENDEVENT} before 
     69         * maxLength, the sequence finishes and is shorter than maxLenght. 
     70         * Otherwise, the sequence finishes as soon as maxLength is reached and the 
     71         * final event of the sequence must not be {@link Event#ENDEVENT}.</li> 
     72         * </ul> 
     73         * </p> 
     74         *  
     75         * @param maxLength 
     76         *            maximum length of the generated sequence 
     77         * @param validEnd 
     78         *            if true, only sequences that finish with 
     79         *            {@link Event#ENDEVENT} are generated 
     80         * @return randomly generated sequence 
     81         *  
     82         */ 
     83        public List<? extends Event<?>> randomSequence(int maxLength, 
     84                        boolean validEnd); 
    6185 
    6286        /** 
Note: See TracChangeset for help on using the changeset viewer.