Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.init
Class BinaryInitializer

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

public class BinaryInitializer
extends AbstractInitializer

Initiatializer for binary strings.

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

Field Summary
protected  int length
          Length of the bitstring.
 
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
BinaryInitializer()
           
 
Method Summary
protected  IGenotype createGenotype()
          Creates a new genotype.
 int getLength()
          Returns the length of the bitstring.
 void setLength(int i)
          Sets the length of the bitstring.
 
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 bitstring.

Constructor Detail

BinaryInitializer

public BinaryInitializer()
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 the length of the bitstring.

Returns:
length of the bitstring

setLength

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

Parameters:
i - length of the bitstring
Throws:
java.beans.PropertyVetoException - thrown in case the property cannot be set

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

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