Changeset 766 for trunk/quest-core-coverage/src/main/java/de/ugoe/cs/quest/coverage/SequenceTools.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/SequenceTools.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.LinkedHashMap; … … 83 82 * lenght of the sequences 84 83 * @return numStates^length 85 * @throws I nvalidParameterException84 * @throws IllegalArgumentException 86 85 * thrown if length less or equal to 0 87 86 */ 88 87 public static long numSequences(IStochasticProcess process, int length) { 89 88 if (length <= 0) { 90 throw new I nvalidParameterException("length must be a positive integer");89 throw new IllegalArgumentException("length must be a positive integer"); 91 90 } 92 91 long result = 0; … … 108 107 * length of the subsequences 109 108 * @return {@link Set} of all subsequences 110 * @throws I nvalidParameterException109 * @throws IllegalArgumentException 111 110 * thrown if length less or equal to 0 112 111 */ … … 115 114 { 116 115 if (length <= 0) { 117 throw new I nvalidParameterException("length must be a positive integer");116 throw new IllegalArgumentException("length must be a positive integer"); 118 117 } 119 118 Set<List<Event>> containedSubSeqs = new LinkedHashSet<List<Event>>();
Note: See TracChangeset
for help on using the changeset viewer.