org.jscience.biology
Class Individual

java.lang.Object
  extended by org.jscience.biology.Individual
All Implemented Interfaces:
java.lang.Cloneable, Positioned
Direct Known Subclasses:
HistoricalIndividual

public class Individual
extends java.lang.Object
implements java.lang.Cloneable, Positioned

A class representing an individual from a specie. Could also be called organism.


Constructor Summary
Individual(Species species)
          Creates a new Individual object.
 
Method Summary
 void addBehavior(Behavior behavior)
          DOCUMENT ME!
 void addRole(Role role)
          DOCUMENT ME!
 boolean checkGenome()
          DOCUMENT ME!
 java.lang.Object clone()
          DOCUMENT ME!
 boolean equals(java.lang.Object o)
          DOCUMENT ME!
 java.util.Set getAllCells()
          DOCUMENT ME!
 java.lang.Object getAttribute()
          DOCUMENT ME!
 java.util.Set getBehaviors()
          DOCUMENT ME!
 java.util.Set getOrgans()
          DOCUMENT ME!
 Place getPosition()
          DOCUMENT ME!
 java.util.Set getRoles()
          DOCUMENT ME!
 int getSex()
          DOCUMENT ME!
 Species getSpecies()
          DOCUMENT ME!
 int getStage()
          DOCUMENT ME!
 Place getTerritory()
          DOCUMENT ME!
 java.util.Set getTissues()
          DOCUMENT ME!
 void removeBehavior(Behavior behavior)
          DOCUMENT ME!
 void removeRole(Role role)
          DOCUMENT ME!
 java.util.Set reproduce(java.util.Set individuals)
          DOCUMENT ME!
 void setAttribute(java.lang.Object attribute)
          DOCUMENT ME!
 void setBehaviors(java.util.Set behaviors)
          DOCUMENT ME!
 void setOrgans(java.util.Set organs)
          DOCUMENT ME!
 void setPosition(Place place)
          DOCUMENT ME!
 void setRoles(java.util.Set roles)
          DOCUMENT ME!
 void setSex(int sex)
          DOCUMENT ME!
 void setSpecies(Species species)
          DOCUMENT ME!
 void setStage(int stage)
          DOCUMENT ME!
 void setTerritory(Place territory)
          DOCUMENT ME!
 void setTissues(java.util.Set tissues)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Individual

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

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

getSpecies

public Species getSpecies()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setSpecies

public void setSpecies(Species species)
DOCUMENT ME!

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

getStage

public int getStage()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setStage

public void setStage(int stage)
DOCUMENT ME!

Parameters:
stage - DOCUMENT ME!

getSex

public int getSex()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setSex

public void setSex(int sex)
DOCUMENT ME!

Parameters:
sex - DOCUMENT ME!

getOrgans

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

Returns:
DOCUMENT ME!

setOrgans

public void setOrgans(java.util.Set organs)
DOCUMENT ME!

Parameters:
organs - DOCUMENT ME!

getTissues

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

Returns:
DOCUMENT ME!

setTissues

public void setTissues(java.util.Set tissues)
DOCUMENT ME!

Parameters:
tissues - DOCUMENT ME!

getAllCells

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

Returns:
DOCUMENT ME!

checkGenome

public boolean checkGenome()
DOCUMENT ME!

Returns:
DOCUMENT ME!

reproduce

public java.util.Set reproduce(java.util.Set individuals)
DOCUMENT ME!

Parameters:
individuals - DOCUMENT ME!
Returns:
DOCUMENT ME!

clone

public java.lang.Object clone()
DOCUMENT ME!

Overrides:
clone in class java.lang.Object
Returns:
DOCUMENT ME!

equals

public boolean equals(java.lang.Object o)
DOCUMENT ME!

Overrides:
equals in class java.lang.Object
Parameters:
o - DOCUMENT ME!
Returns:
DOCUMENT ME!

getPosition

public Place getPosition()
DOCUMENT ME!

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

setPosition

public void setPosition(Place place)
DOCUMENT ME!

Parameters:
place - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getTerritory

public Place getTerritory()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setTerritory

public void setTerritory(Place territory)
DOCUMENT ME!

Parameters:
territory - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getBehaviors

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

Returns:
DOCUMENT ME!

setBehaviors

public void setBehaviors(java.util.Set behaviors)
DOCUMENT ME!

Parameters:
behaviors - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

addBehavior

public void addBehavior(Behavior behavior)
DOCUMENT ME!

Parameters:
behavior - DOCUMENT ME!

removeBehavior

public void removeBehavior(Behavior behavior)
DOCUMENT ME!

Parameters:
behavior - DOCUMENT ME!

addRole

public void addRole(Role role)
DOCUMENT ME!

Parameters:
role - DOCUMENT ME!

removeRole

public void removeRole(Role role)
DOCUMENT ME!

Parameters:
role - DOCUMENT ME!

setRoles

public void setRoles(java.util.Set roles)
DOCUMENT ME!

Parameters:
roles - DOCUMENT ME!

getRoles

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

Returns:
DOCUMENT ME!

getAttribute

public java.lang.Object getAttribute()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setAttribute

public void setAttribute(java.lang.Object attribute)
DOCUMENT ME!

Parameters:
attribute - DOCUMENT ME!