JAGA Homepage

org.jaga.util
Class DefaultParameterSet

java.lang.Object
  extended by org.jaga.util.DefaultParameterSet
All Implemented Interfaces:
GAParameterSet

public class DefaultParameterSet
extends java.lang.Object
implements GAParameterSet

TODO: Complete these comments.

Project: JAGA - Java API for Genetic Algorithms.

Company: University College London and JAGA.Org (http://www.jaga.org).

Copyright: (c) 2004 by G. Paperin.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ONLY if you include a note of the original author(s) in any redistributed/modified copy.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or see http://www.gnu.org/licenses/gpl.html

Version:
JAGA public release 1.0 beta
Author:
Greg Paperin (greg@jaga.org)

Field Summary
private  java.util.HashMap params
           
 
Constructor Summary
DefaultParameterSet()
           
 
Method Summary
protected  java.lang.Object fetchParameter(java.lang.String paramName)
           
 FitnessEvaluationAlgorithm getFitnessEvaluationAlgorithm()
           
 IndividualsFactory getIndividualsFactory()
           
 int getMaxBadReproductionAttempts()
           
 int getMaxGenerationNumber()
           
 int getPopulationSize()
           
 RandomGenerator getRandomGenerator()
           
 ReproductionAlgorithm getReproductionAlgorithm()
           
 SelectionAlgorithm getSelectionAlgorithm()
           
 boolean getUseMainAlgorithmHooks()
           
 void setDefaultvalues()
           
 void setFitnessEvaluationAlgorithm(FitnessEvaluationAlgorithm val)
           
 void setIndividualsFactory(IndividualsFactory val)
           
 void setMaxBadReproductionAttempts(int val)
           
 void setMaxGenerationNumber(int val)
           
 void setPopulationSize(int val)
           
 void setRandomGenerator(RandomGenerator val)
           
 void setReproductionAlgorithm(ReproductionAlgorithm val)
           
 void setSelectionAlgorithm(SelectionAlgorithm val)
           
 void setUseMainAlgorithmHooks(boolean val)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

params

private java.util.HashMap params
Constructor Detail

DefaultParameterSet

public DefaultParameterSet()
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface GAParameterSet
Overrides:
toString in class java.lang.Object

setDefaultvalues

public void setDefaultvalues()

fetchParameter

protected java.lang.Object fetchParameter(java.lang.String paramName)

getIndividualsFactory

public IndividualsFactory getIndividualsFactory()
Specified by:
getIndividualsFactory in interface GAParameterSet

setIndividualsFactory

public void setIndividualsFactory(IndividualsFactory val)
Specified by:
setIndividualsFactory in interface GAParameterSet

getPopulationSize

public int getPopulationSize()
Specified by:
getPopulationSize in interface GAParameterSet

setPopulationSize

public void setPopulationSize(int val)
Specified by:
setPopulationSize in interface GAParameterSet

getMaxGenerationNumber

public int getMaxGenerationNumber()
Specified by:
getMaxGenerationNumber in interface GAParameterSet

setMaxGenerationNumber

public void setMaxGenerationNumber(int val)
Specified by:
setMaxGenerationNumber in interface GAParameterSet

getReproductionAlgorithm

public ReproductionAlgorithm getReproductionAlgorithm()
Specified by:
getReproductionAlgorithm in interface GAParameterSet

setReproductionAlgorithm

public void setReproductionAlgorithm(ReproductionAlgorithm val)
Specified by:
setReproductionAlgorithm in interface GAParameterSet

getSelectionAlgorithm

public SelectionAlgorithm getSelectionAlgorithm()
Specified by:
getSelectionAlgorithm in interface GAParameterSet

setSelectionAlgorithm

public void setSelectionAlgorithm(SelectionAlgorithm val)
Specified by:
setSelectionAlgorithm in interface GAParameterSet

getFitnessEvaluationAlgorithm

public FitnessEvaluationAlgorithm getFitnessEvaluationAlgorithm()
Specified by:
getFitnessEvaluationAlgorithm in interface GAParameterSet

setFitnessEvaluationAlgorithm

public void setFitnessEvaluationAlgorithm(FitnessEvaluationAlgorithm val)
Specified by:
setFitnessEvaluationAlgorithm in interface GAParameterSet

getMaxBadReproductionAttempts

public int getMaxBadReproductionAttempts()
Specified by:
getMaxBadReproductionAttempts in interface GAParameterSet

setMaxBadReproductionAttempts

public void setMaxBadReproductionAttempts(int val)
Specified by:
setMaxBadReproductionAttempts in interface GAParameterSet

getRandomGenerator

public RandomGenerator getRandomGenerator()
Specified by:
getRandomGenerator in interface GAParameterSet

setRandomGenerator

public void setRandomGenerator(RandomGenerator val)
Specified by:
setRandomGenerator in interface GAParameterSet

getUseMainAlgorithmHooks

public boolean getUseMainAlgorithmHooks()
Specified by:
getUseMainAlgorithmHooks in interface GAParameterSet

setUseMainAlgorithmHooks

public void setUseMainAlgorithmHooks(boolean val)
Specified by:
setUseMainAlgorithmHooks in interface GAParameterSet

JAGA Homepage

Go to JAGA Homepage