Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.init
Class FloatArrayInitializer

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

public class FloatArrayInitializer
extends AbstractInitializer

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

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

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


upperBound

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

Constructor Detail

FloatArrayInitializer

public FloatArrayInitializer()
Constructor.


FloatArrayInitializer

public FloatArrayInitializer(int arraySize,
                             float lowerBound,
                             float 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 the array size.

Returns:
int arrays size

getLowerBound

public float getLowerBound()
Returns the lower bound.

Returns:
int lower bound

getUpperBound

public float getUpperBound()
Returns the upper bound.

Returns:
int upper bound

setArraySize

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

Parameters:
arraySize - the array size to set
Throws:
java.beans.PropertyVetoException

setLowerBound

public void setLowerBound(float lowerBound)
                   throws java.beans.PropertyVetoException
Sets the lower bound.

Parameters:
lowerBound - the lower bound to set
Throws:
java.beans.PropertyVetoException

setUpperBound

public void setUpperBound(float upperBound)
                   throws java.beans.PropertyVetoException
Sets the upper bound.

Parameters:
upperBound - the upper bound 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