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/CoverageCalculatorObserved.java

    r655 r766  
    11package de.ugoe.cs.quest.coverage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.LinkedHashSet; 
     
    6968     * @param length 
    7069     *            length of the subsequences for which the coverage is analyzed; must be >0 
    71      * @throws InvalidParameterException 
     70     * @throws IllegalArgumentException 
    7271     *             thrown if observedSequences or sequences is null or length less than or equal to 
    7372     *             0 
     
    7877    { 
    7978        if (observedSequences == null) { 
    80             throw new InvalidParameterException("observed sequences must not be null"); 
     79            throw new IllegalArgumentException("observed sequences must not be null"); 
    8180        } 
    8281        if (sequences == null) { 
    83             throw new InvalidParameterException("sequences must not be null"); 
     82            throw new IllegalArgumentException("sequences must not be null"); 
    8483        } 
    8584        if (length <= 0) { 
    86             throw new InvalidParameterException("length must be >0; actual value: " + length); 
     85            throw new IllegalArgumentException("length must be >0; actual value: " + length); 
    8786        } 
    8887        this.observedSequences = observedSequences; 
     
    158157     *            stochastic process which is used to determine which subsequences are possible 
    159158     * @return coverage percentage 
    160      * @throws InvalidParameterException 
     159     * @throws IllegalArgumentException 
    161160     *             thrown if process is null 
    162161     */ 
    163162    public double getCoveragePossibleNew(IStochasticProcess process) { 
    164163        if (process == null) { 
    165             throw new InvalidParameterException("process must not be null"); 
     164            throw new IllegalArgumentException("process must not be null"); 
    166165        } 
    167166        createSubSeqs(); 
     
    186185     *            are possible 
    187186     * @return coverage percentage 
    188      * @throws InvalidParameterException 
     187     * @throws IllegalArgumentException 
    189188     *             thrown if process is null 
    190189     */ 
    191190    public double getCoveragePossibleNewWeight(IStochasticProcess process) { 
    192191        if (process == null) { 
    193             throw new InvalidParameterException("process must not be null"); 
     192            throw new IllegalArgumentException("process must not be null"); 
    194193        } 
    195194        createSubSeqs(); 
Note: See TracChangeset for help on using the changeset viewer.