Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core
Class GenotypeRepository

java.lang.Object
  extended byorg.evolvica.core.GenotypeRepository

public class GenotypeRepository
extends java.lang.Object

Repository for collecting and creating genotype IDs.

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

Method Summary
static IDatatype getID(java.lang.Class clazz)
          Returns a genotype ID for a given class.
static IDatatype getID(IGenotype gene)
          Returns a genotype ID for a given genotype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getID

public static final IDatatype getID(IGenotype gene)
Returns a genotype ID for a given genotype. This methods returns an ID if the genotype is already known or creates a new ID if the genotype is unknown.

Parameters:
gene - genotype for which an ID should be created
Returns:
ID for the given genotype

getID

public static final IDatatype getID(java.lang.Class clazz)
Returns a genotype ID for a given class. This is a helper method for creating genotype IDs.

Parameters:
clazz - class for which an ID should be created
Returns:
ID for the given genotype class or null if the class is not an instance of IGenotype

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

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