Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core
Interface IGenotype

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IMultiGenotype
All Known Implementing Classes:
AbstractGene

public interface IGenotype
extends java.io.Serializable

Interface for a genotype. A genotype holds the genetic information of an individual. Other common expressions are gene or chromosome. Each individual holds exactly one genotype.

Since:
0.4.0
Version:
$Revision: 1.5 $ $Date: 2004/05/26 11:57:53 $
Author:
Andreas Rummler

Method Summary
 IGenotype copy()
          Creates a complete copy of this genotype (optional operation).
 IDatatype getType()
          Returns the type identifier of this genotype.
 java.lang.String toString()
          Returns a string representation of this genotype.
 

Method Detail

copy

public IGenotype copy()
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

getType

public IDatatype getType()
Returns the type identifier of this genotype. Type identifiers are used for recognizing genotypes and for being able to perform validity checks in genetic operators.

Returns:
the identifier of the genotype

toString

public java.lang.String toString()
Returns a string representation of this genotype.

Returns:
string representation

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

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