Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core
Class FloatArrayGene

java.lang.Object
  extended byorg.evolvica.core.AbstractGene
      extended byorg.evolvica.core.FloatArrayGene
All Implemented Interfaces:
IGenotype, java.io.Serializable

public class FloatArrayGene
extends AbstractGene

Gene holding an array of floats.

Since:
0.4.0
Version:
$Revision: 1.7 $ $Date: 2004/05/26 11:57:52 $
Author:
Andreas Rummler
See Also:
Serialized Form

Field Summary
protected  float[] value
          Array of floats.
 
Constructor Summary
FloatArrayGene(float[] value)
          Constructor.
 
Method Summary
 IGenotype copy()
          Creates a complete copy of this genotype (optional operation).
 float[] getValue()
          Returns the value.
 void setValue(float[] value)
          Sets the value.
 int size()
          Returns the size of the float array.
 java.lang.String toString()
          Returns a string representation of this genotype.
 
Methods inherited from class org.evolvica.core.AbstractGene
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected float[] value
Array of floats.

Constructor Detail

FloatArrayGene

public FloatArrayGene(float[] value)
Constructor.

Parameters:
value - array of floats
Method Detail

getValue

public float[] getValue()
Returns the value.

Returns:
float[]

setValue

public void setValue(float[] value)
Sets the value.

Parameters:
value - The value to set

copy

public IGenotype copy()
Description copied from interface: IGenotype
Creates a complete copy of this genotype (optional operation). Note that this is an optional operation. Operators should not rely on this method and use a genotype builder for creating new genotypes.

Returns:
new genotype containing the same genetic information
See Also:
IGenotype.copy()

size

public int size()
Returns the size of the float array.

Returns:
size of the float array

toString

public java.lang.String toString()
Description copied from interface: IGenotype
Returns a string representation of this genotype.

See Also:
Object.toString()

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

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