org.thalia.bio.entity
Class Population
java.lang.Object
org.thalia.bio.entity.BioEntity
org.thalia.bio.entity.BioEntityContainer
org.thalia.bio.entity.IndividualContainer
org.thalia.bio.entity.Population
- All Implemented Interfaces:
- IBioAdaptable, IBioEntity, IBioPopulation
- Direct Known Subclasses:
- CrossPopulation
public class Population
- extends IndividualContainer
- implements IBioPopulation
Class Description Here
- Author:
- Jean-Baptiste Veyrieras
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
size
protected int size
generation
protected int generation
parents
public IBioIndividual[] parents
Population
public Population()
Population
public Population(java.lang.String name,
IBioEntity parent)
- Parameters:
name
- parent
-
newCrossPopulation
public static Population newCrossPopulation(int type,
java.lang.String name,
IBioEntity parent)
getType
public int getType()
- Description copied from interface:
IBioEntity
- There are 2 main class of entities. The first one deals with population
biological entity, i.e population itself and individuals. The second class
is a representation of microscopic biological entity from genome container
to alleles.
- Specified by:
getType
in interface IBioEntity
- Specified by:
getType
in class IndividualContainer
getIndividualNumber
public int getIndividualNumber()
- Specified by:
getIndividualNumber
in interface IBioPopulation
- Specified by:
getIndividualNumber
in class IndividualContainer
setSize
public void setSize(int size)
- Set the population size.
- Parameters:
size
- The size to set.
getSize
public int getSize()
- Returns the size of the population.
- Returns:
getBioAdapter
public IBioAdapter getBioAdapter()
- Specified by:
getBioAdapter
in interface IBioAdaptable
getGeneration
public int getGeneration()
- Returns:
- Returns the generation.
setGeneration
public void setGeneration(int generation)
- Parameters:
generation
- The generation to set.
getParents
public IBioIndividual[] getParents()