Ignore:
Timestamp:
09/04/12 17:15:28 (12 years ago)
Author:
sherbold
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-coverage/src/main/java/de/ugoe/cs/quest/coverage/SequenceTools.java

    r655 r766  
    11package de.ugoe.cs.quest.coverage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.LinkedHashMap; 
     
    8382     *            lenght of the sequences 
    8483     * @return numStates^length 
    85      * @throws InvalidParameterException 
     84     * @throws IllegalArgumentException 
    8685     *             thrown if length less or equal to 0 
    8786     */ 
    8887    public static long numSequences(IStochasticProcess process, int length) { 
    8988        if (length <= 0) { 
    90             throw new InvalidParameterException("length must be a positive integer"); 
     89            throw new IllegalArgumentException("length must be a positive integer"); 
    9190        } 
    9291        long result = 0; 
     
    108107     *            length of the subsequences 
    109108     * @return {@link Set} of all subsequences 
    110      * @throws InvalidParameterException 
     109     * @throws IllegalArgumentException 
    111110     *             thrown if length less or equal to 0 
    112111     */ 
     
    115114    { 
    116115        if (length <= 0) { 
    117             throw new InvalidParameterException("length must be a positive integer"); 
     116            throw new IllegalArgumentException("length must be a positive integer"); 
    118117        } 
    119118        Set<List<Event>> containedSubSeqs = new LinkedHashSet<List<Event>>(); 
Note: See TracChangeset for help on using the changeset viewer.