org.jgap.impl
Class DefaultConfiguration
- java.lang.Object
-
- org.jgap.Configuration
-
- 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
Constructors Constructor and Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()-
Methods inherited from class org.jgap.Configuration
addGeneticOperator, addNaturalSelector, compareTo, equals, getBreeder, getBulkFitnessFunction, getChromosomePool, getChromosomeSize, getConfigurationHandler, getEventManager, getFitnessEvaluator, getFitnessFunction, getGenerationNr, getGeneticOperators, getId, getJGAPFactory, getMinimumPopSizePercent, getMonitor, getName, getNaturalSelector, getNaturalSelector, getNaturalSelectors, getNaturalSelectorsSize, getPopulationSize, getRandomGenerator, getSampleChromosome, getSelectFromPrevGen, incrementGenerationNr, isAlwaysCalculateFitness, isKeepPopulationSizeConstant, isLocked, isPreserveFittestIndividual, isUniqueKeysActive, lockSettings, newInstance, removeNaturalSelectors, reset, reset, resetProperty, resetProperty, setAlwaysCaculateFitness, setBreeder, setBulkFitnessFunction, setChromosomePool, setEventManager, setFitnessEvaluator, setFitnessFunction, setJGAPFactory, setKeepPopulationSizeConstant, setMinimumPopSizePercent, setMonitor, setName, setNaturalSelector, setPopulationSize, setPreservFittestIndividual, setRandomGenerator, setSampleChromosome, setSelectFromPrevGen, setUniqueKeysActive, toString, verifyStateIsValid
-
-
-
-
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 threada_name- informative name of the configuration, may be null- Since:
- 1.0
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceICloneable- Overrides:
clonein classConfiguration- Returns:
- deep clone of this instance
- Since:
- 3.2
-
-
DMelt 3.0 © DataMelt by jWork.ORG