Clover coverage report - JGAP 3.1
Coverage timestamp: Mo Dez 11 2006 21:16:18 CET
file stats: LOC: 49   Methods: 2
NCLOC: 16   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
BaseRateCalculator.java 100% 100% 100% 100%
coverage
 1    /*
 2    * This file is part of JGAP.
 3    *
 4    * JGAP offers a dual license model containing the LGPL as well as the MPL.
 5    *
 6    * For licencing information please see the file license.txt included with JGAP
 7    * or have a look at the top of class org.jgap.Chromosome which representatively
 8    * includes the JGAP license policy applicable for any file delivered with JGAP.
 9    */
 10    package org.jgap;
 11   
 12    /**
 13    * Base class for rate calculators.
 14    *
 15    * @author Klaus Meffert
 16    * @since 3.0
 17    */
 18    public abstract class BaseRateCalculator
 19    implements IUniversalRateCalculator {
 20    /** String containing the CVS revision. Read out via reflection!*/
 21    private static final String CVS_REVISION = "$Revision: 1.2 $";
 22   
 23    private transient Configuration m_config;
 24   
 25    /**
 26    * @param a_config the configuration to use
 27    * @throws InvalidConfigurationException
 28    *
 29    * @author Klaus Meffert
 30    * @since 3.0
 31    */
 32  1159 public BaseRateCalculator(Configuration a_config)
 33    throws InvalidConfigurationException {
 34  1159 if (a_config == null) {
 35  1 throw new InvalidConfigurationException("Configuration must not be null!");
 36    }
 37  1158 m_config = a_config;
 38    }
 39   
 40    /**
 41    * @return the configuration used
 42    *
 43    * @author Klaus Meffert
 44    * @since 3.0
 45    */
 46  547 public Configuration getConfiguration() {
 47  547 return m_config;
 48    }
 49    }