KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgap > BaseRateCalculator


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 JavaDoc 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   public BaseRateCalculator(Configuration a_config)
33       throws InvalidConfigurationException {
34     if (a_config == null) {
35       throw new InvalidConfigurationException("Configuration must not be null!");
36     }
37     m_config = a_config;
38   }
39
40   /**
41    * @return the configuration used
42    *
43    * @author Klaus Meffert
44    * @since 3.0
45    */

46   public Configuration getConfiguration() {
47     return m_config;
48   }
49 }
50
Popular Tags