org.jscience.biology
Class Population

java.lang.Object
  extended by org.jscience.biology.Population
All Implemented Interfaces:
Positioned
Direct Known Subclasses:
Crowd, Group

public class Population
extends java.lang.Object
implements Positioned

A class representing a population.


Constructor Summary
Population(Species species)
          Creates a new Population object.
 
Method Summary
 void addIndividual(Individual individual)
          DOCUMENT ME!
 java.util.Set getIndividuals()
          DOCUMENT ME!
 Place getPosition()
          DOCUMENT ME!
 Species getSpecies()
          DOCUMENT ME!
 Place getTerritory()
          DOCUMENT ME!
 boolean isContained(Population population)
          DOCUMENT ME!
 void removeIndividual(Individual individual)
          DOCUMENT ME!
 void setIndividuals(java.util.Set individuals)
          DOCUMENT ME!
 int size()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Population

public Population(Species species)
Creates a new Population object.

Parameters:
species - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

size

public int size()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSpecies

public Species getSpecies()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getIndividuals

public java.util.Set getIndividuals()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setIndividuals

public void setIndividuals(java.util.Set individuals)
DOCUMENT ME!

Parameters:
individuals - DOCUMENT ME!

addIndividual

public void addIndividual(Individual individual)
DOCUMENT ME!

Parameters:
individual - DOCUMENT ME!

removeIndividual

public void removeIndividual(Individual individual)
DOCUMENT ME!

Parameters:
individual - DOCUMENT ME!

isContained

public boolean isContained(Population population)
DOCUMENT ME!

Parameters:
population - DOCUMENT ME!
Returns:
DOCUMENT ME!

getPosition

public Place getPosition()
DOCUMENT ME!

Specified by:
getPosition in interface Positioned
Returns:
DOCUMENT ME!

getTerritory

public Place getTerritory()
DOCUMENT ME!

Returns:
DOCUMENT ME!