Changeset 766 for trunk/quest-core-coverage/src/main/java/de/ugoe/cs/quest/coverage/CoverageCalculatorObserved.java
- Timestamp:
- 09/04/12 17:15:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-coverage/src/main/java/de/ugoe/cs/quest/coverage/CoverageCalculatorObserved.java
r655 r766 1 1 package de.ugoe.cs.quest.coverage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.LinkedHashSet; … … 69 68 * @param length 70 69 * length of the subsequences for which the coverage is analyzed; must be >0 71 * @throws I nvalidParameterException70 * @throws IllegalArgumentException 72 71 * thrown if observedSequences or sequences is null or length less than or equal to 73 72 * 0 … … 78 77 { 79 78 if (observedSequences == null) { 80 throw new I nvalidParameterException("observed sequences must not be null");79 throw new IllegalArgumentException("observed sequences must not be null"); 81 80 } 82 81 if (sequences == null) { 83 throw new I nvalidParameterException("sequences must not be null");82 throw new IllegalArgumentException("sequences must not be null"); 84 83 } 85 84 if (length <= 0) { 86 throw new I nvalidParameterException("length must be >0; actual value: " + length);85 throw new IllegalArgumentException("length must be >0; actual value: " + length); 87 86 } 88 87 this.observedSequences = observedSequences; … … 158 157 * stochastic process which is used to determine which subsequences are possible 159 158 * @return coverage percentage 160 * @throws I nvalidParameterException159 * @throws IllegalArgumentException 161 160 * thrown if process is null 162 161 */ 163 162 public double getCoveragePossibleNew(IStochasticProcess process) { 164 163 if (process == null) { 165 throw new I nvalidParameterException("process must not be null");164 throw new IllegalArgumentException("process must not be null"); 166 165 } 167 166 createSubSeqs(); … … 186 185 * are possible 187 186 * @return coverage percentage 188 * @throws I nvalidParameterException187 * @throws IllegalArgumentException 189 188 * thrown if process is null 190 189 */ 191 190 public double getCoveragePossibleNewWeight(IStochasticProcess process) { 192 191 if (process == null) { 193 throw new I nvalidParameterException("process must not be null");192 throw new IllegalArgumentException("process must not be null"); 194 193 } 195 194 createSubSeqs();
Note: See TracChangeset
for help on using the changeset viewer.