- Timestamp:
- 07/05/11 15:24:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/coverage/CoverageCalculator.java
r106 r107 1 1 package de.ugoe.cs.eventbench.coverage; 2 2 3 import java.security.InvalidParameterException; 3 4 import java.util.Collection; 4 5 import java.util.LinkedHashMap; … … 75 76 * 76 77 * @param process 77 * stochastic process used for coverage calculations; if it is 78 * zero, not all calculations are possible 78 * stochastic process used for coverage calculations; must not be null 79 79 * @param sequences 80 80 * sequences for which the coverage is calculated; must not be 81 * null .81 * null 82 82 * @param length 83 83 * length of the subsequences for which the coverage is analyzed; … … 86 86 public CoverageCalculator(IStochasticProcess process, 87 87 Collection<List<? extends Event<?>>> sequences, int length) { 88 // TODO check parameters 88 if( process==null ) { 89 throw new InvalidParameterException("process must not be null"); 90 } 91 if( sequences==null ) { 92 throw new InvalidParameterException("sequences must not be null"); 93 } 94 if( length<=0 ) { 95 throw new InvalidParameterException("length must be >0; actual value: " + length); 96 } 89 97 this.process = process; 90 98 this.sequences = sequences;
Note: See TracChangeset
for help on using the changeset viewer.