Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.init
Class RandomStringInitializer

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

public class RandomStringInitializer
extends AbstractInitializer

Operator that creates random string chromosomes. The purpose of this class is mainly the support of debugging.

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

Field Summary
protected  int length
          Length of the generated strings.
 
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
RandomStringInitializer()
          Constructor.
RandomStringInitializer(int stringLength)
          Constructor.
 
Method Summary
protected  IGenotype createGenotype()
          Creates a new genotype.
 int getLength()
           
 void setLength(int length)
          Sets the length.
 
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

length

protected int length
Length of the generated strings.

Constructor Detail

RandomStringInitializer

public RandomStringInitializer()
Constructor.


RandomStringInitializer

public RandomStringInitializer(int stringLength)
Constructor.

Parameters:
stringLength - length of the strings to be generated
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()

getLength

public int getLength()
Returns:
int

setLength

public void setLength(int length)
               throws java.beans.PropertyVetoException
Sets the length.

Parameters:
length - The length 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