Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.init
Class IntegerInitializer

java.lang.Object
  extended byorg.evolvica.engine.AbstractOperator
      extended byorg.evolvica.core.common.AbstractGeneticOperator
          extended byorg.evolvica.core.init.AbstractInitializer
              extended byorg.evolvica.core.init.IntegerInitializer
All Implemented Interfaces:
IGeneticOperator, IOperator, ISource, java.io.Serializable

public class IntegerInitializer
extends AbstractInitializer

Creation of individuals containing integer chromosomes.

Since:
0.4.0
Version:
$Revision: 1.13 $ $Date: 2004/05/26 11:58:05 $
Author:
Andreas Rummler
See Also:
Serialized Form

Field Summary
protected  int lowerBound
          Lower bound of generated int values.
protected  int upperBound
          Upper bound of generated int values.
 
Fields inherited from class org.evolvica.core.init.AbstractInitializer
individualBuilder, setSize
 
Fields inherited from class org.evolvica.engine.AbstractOperator
descriptor, element, id, name
 
Constructor Summary
IntegerInitializer()
          Constructor.
IntegerInitializer(int lowerbound, int upperbound)
          Constructor.
 
Method Summary
protected  IGenotype createGenotype()
          Creates a new genotype.
 int getLowerBound()
           
 int getUpperBound()
           
 void setLowerBound(int lowerBound)
          Sets the lowerBound.
 void setUpperBound(int upperBound)
          Sets the upperBound.
 
Methods inherited from class org.evolvica.core.init.AbstractInitializer
create, createIndividualSet, getIndividualBuilder, getSetSize, setIndividualBuilder, setSetSize
 
Methods inherited from class org.evolvica.engine.AbstractOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.evolvica.engine.IOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 

Field Detail

lowerBound

protected int lowerBound
Lower bound of generated int values.


upperBound

protected int upperBound
Upper bound of generated int values.

Constructor Detail

IntegerInitializer

public IntegerInitializer()
Constructor.


IntegerInitializer

public IntegerInitializer(int lowerbound,
                          int upperbound)
Constructor.

Parameters:
lowerbound - lower bound of generated int values
upperbound - upper bound of generated int values
Method Detail

createGenotype

protected IGenotype createGenotype()
Description copied from class: AbstractInitializer
Creates a new genotype.

Specified by:
createGenotype in class AbstractInitializer
Returns:
newly created genotype
See Also:
AbstractInitializer.createGenotype()

getLowerBound

public int getLowerBound()
Returns:
int

getUpperBound

public int getUpperBound()
Returns:
int

setLowerBound

public void setLowerBound(int lowerBound)
                   throws java.beans.PropertyVetoException
Sets the lowerBound.

Parameters:
lowerBound - The lowerBound to set
Throws:
java.beans.PropertyVetoException

setUpperBound

public void setUpperBound(int upperBound)
                   throws java.beans.PropertyVetoException
Sets the upperBound.

Parameters:
upperBound - The upperBound to set
Throws:
java.beans.PropertyVetoException

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems