Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.init
Class IntegerArrayInitializer

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.IntegerArrayInitializer
All Implemented Interfaces:
IGeneticOperator, IOperator, ISource, java.io.Serializable

public class IntegerArrayInitializer
extends AbstractInitializer

Creation of integer arrays. This class creates an individuals containing an array of integers. The array size and the range of values can be specified.

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

Field Summary
protected  int arraySize
          Size of the array to generated.
protected  int lowerBound
          Lower bound for the random integers (inclusive).
protected  int upperBound
          Upper bound for the random integers (exclusive).
 
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
IntegerArrayInitializer()
          Constructor.
IntegerArrayInitializer(int arraySize, int lowerBound, int upperBound)
          Constructor.
 
Method Summary
protected  IGenotype createGenotype()
          Creates a new genotype.
 int getArraySize()
           
 int getLowerBound()
           
 int getUpperBound()
           
 void setArraySize(int arraySize)
          Sets the arraySize.
 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

arraySize

protected int arraySize
Size of the array to generated.


lowerBound

protected int lowerBound
Lower bound for the random integers (inclusive).


upperBound

protected int upperBound
Upper bound for the random integers (exclusive).

Constructor Detail

IntegerArrayInitializer

public IntegerArrayInitializer()
Constructor.


IntegerArrayInitializer

public IntegerArrayInitializer(int arraySize,
                               int lowerBound,
                               int upperBound)
Constructor. The number of individuals to generated is set to 1.

Parameters:
arraySize - size of the array to be generated
lowerBound - lower bound for integers
upperBound - upper bound for integers
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()

getArraySize

public int getArraySize()
Returns:
int

getLowerBound

public int getLowerBound()
Returns:
int

getUpperBound

public int getUpperBound()
Returns:
int

setArraySize

public void setArraySize(int arraySize)
                  throws java.beans.PropertyVetoException
Sets the arraySize.

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

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