org.concord.biologica.engine
Class ChromosomeSpecification
java.lang.Object
|
+--org.concord.biologica.engine.ChromosomeSpecification
- public final class ChromosomeSpecification
- extends java.lang.Object
This class represents the specification of a particular chromosome for use in
creating an organism. In other words, this class represents a "blueprint"
for a single chromosome of an organism.
During meiosis and fertilization the genotype of the child organism is created.
That genotype consists of an exact specification for what alleles should be
on what chromosomes of the resulting child organism. This class is a portion
of that exact specification, the portion for a single chromosome.
Instances of this class are best considered immutable, transient and with very
short lifetimes. Hence there is no way to save instances of this class to a file,
no notification of property changes, no methods to change instance variables, etc.
- Version:
- $Revision: 1.1.1.1 $ $Date: 2001/04/28 00:39:11 $
- Author:
- $Author: ed $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChromosomeSpecification
public ChromosomeSpecification(Species aSpecies,
SpeciesChromosome aSpeciesChromosome,
java.util.Vector someSpeciesAlleles)
- Create a new chromosome specification.
- Parameters:
aSpecies
- Species - the species containing this chromosome, may not be nullaSpeciesChromosome
- SpeciesChromosome - the species chromosome for this specificationsomeSpeciesAlleles
- Vector - a vector of species alleles- Throws:
java.lang.IllegalArgumentException
- - input argument(s) illegal
getSpeciesChromosome
public SpeciesChromosome getSpeciesChromosome()
- Returns the species chromosome for this specification.
- Returns:
- SpeciesChromosome - this specification's species chromosome
getSpeciesAlleles
public java.util.Enumeration getSpeciesAlleles()
- Returns an enumeration over the species alleles for this specification
- Returns:
- Enumeration over the species alleles in this specification