1 10 package org.jgap; 11 12 18 public abstract class BaseChromosome 19 implements IChromosome, IInitializer { 20 21 private final static String CVS_REVISION = "$Revision: 1.7 $"; 22 23 26 private Configuration m_configuration; 27 28 37 public BaseChromosome(Configuration a_configuration) 38 throws InvalidConfigurationException { 39 if (a_configuration == null) { 40 throw new InvalidConfigurationException( 41 "Configuration to be set must not" 42 + " be null!"); 43 } 44 m_configuration = a_configuration; 45 } 46 47 53 public Configuration getConfiguration() { 54 return m_configuration; 55 } 56 57 66 public abstract Object clone(); 67 } 68 | Popular Tags |