JGAP

org.jgap.impl
Class DefaultConfiguration

java.lang.Object
  extended by org.jgap.Configuration
      extended by org.jgap.impl.DefaultConfiguration
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, Configurable, ICloneable

public class DefaultConfiguration
extends Configuration
implements ICloneable

The DefaultConfiguration class simplifies the JGAP configuration process by providing default configuration values for many of the configuration settings. The following values must still be provided: the sample Chromosome, population size, and desired fitness function. All other settings may also be changed in the normal fashion for those who wish to specify other custom values.

Since:
1.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jgap.Configuration
Configuration.ConfigurationConfigurable
 
Field Summary
 
Fields inherited from class org.jgap.Configuration
PROPERTY_BFITFNC_INST, PROPERTY_EVENT_MGR_INST, PROPERTY_FITEVAL_INST, PROPERTY_FITFUNC_INST, PROPERTY_JGAPFACTORY_CLASS, PROPERTY_SAMPLE_CHROM_INST, S_CHROMOSOME_SIZE, S_CONFIGURATION, S_CONFIGURATION_HANDLER, S_CONFIGURATION_NAME, S_EVENT_MANAGER, S_FITNESS_EVALUATOR, S_FITNESS_FUNCTION, S_GENETIC_OPERATORS, S_MINPOPSIZE, S_NATURAL_SELECTORS, S_NONE, S_POPULATION_SIZE, S_POST, S_PRE, S_RANDOM_GENERATOR, S_SAMPLE_CHROM, S_SIZE, S_TOSTRING
 
Constructor Summary
DefaultConfiguration()
           
DefaultConfiguration(java.lang.String a_id, java.lang.String a_name)
          Constructs a new DefaultConfiguration instance with a number of configuration settings set to default values.
 
Method Summary
 java.lang.Object clone()
           
 
Methods inherited from class org.jgap.Configuration
addGeneticOperator, addNaturalSelector, checkProperty, compareTo, doClone, equals, getBreeder, getBulkFitnessFunction, getChromosomePool, getChromosomeSize, getConfigurationHandler, getEventManager, getFitnessEvaluator, getFitnessFunction, getGenerationNr, getGeneticOperators, getId, getJGAPFactory, getMinimumPopSizePercent, getMonitor, getName, getNaturalSelector, getNaturalSelector, getNaturalSelectors, getNaturalSelectorsSize, getPopulationSize, getRandomGenerator, getSampleChromosome, getSelectFromPrevGen, getThreadKey, incrementGenerationNr, isAlwaysCalculateFitness, isKeepPopulationSizeConstant, isLocked, isPreserveFittestIndividual, isUniqueKeysActive, lockSettings, makeKey, makeThreadKey, newInstance, removeNaturalSelectors, reset, reset, resetProperty, resetProperty, setAlwaysCaculateFitness, setBreeder, setBulkFitnessFunction, setChromosomePool, setEventManager, setFitnessEvaluator, setFitnessFunction, setId, setJGAPFactory, setKeepPopulationSizeConstant, setMinimumPopSizePercent, setMonitor, setName, setNaturalSelector, setPopulationSize, setPreservFittestIndividual, setRandomGenerator, setSampleChromosome, setSelectFromPrevGen, setUniqueKeysActive, toString, verifyChangesAllowed, verifyStateIsValid
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultConfiguration

public DefaultConfiguration()

DefaultConfiguration

public DefaultConfiguration(java.lang.String a_id,
                            java.lang.String a_name)
Constructs a new DefaultConfiguration instance with a number of configuration settings set to default values. It is still necessary to set the sample Chromosome, population size, and desired fitness function. Other settings may optionally be altered as desired.

Parameters:
a_id - unique id for the configuration within the current thread
a_name - informative name of the configuration, may be null
Since:
1.0
Method Detail

clone

public java.lang.Object clone()
Specified by:
clone in interface ICloneable
Overrides:
clone in class Configuration
Returns:
deep clone of this instance
Since:
3.2

JGAP