org.jscience.biology
Class Species

java.lang.Object
  extended by org.jscience.biology.Species
All Implemented Interfaces:
Named
Direct Known Subclasses:
HumanSpecies

public abstract class Species
extends java.lang.Object
implements Named

A class representing a specie.


Constructor Summary
Species(java.lang.String name, Taxon taxon)
          Creates a new Species object.
Species(Taxon taxon)
          Creates a new Species object.
 
Method Summary
 void addBehavior(Behavior behavior)
          DOCUMENT ME!
 boolean equals(java.lang.Object o)
          DOCUMENT ME!
 java.util.Set getBehaviors()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 int getPredationMode()
          DOCUMENT ME!
 int getReproductionMode()
          DOCUMENT ME!
 Taxon getTaxon()
          DOCUMENT ME!
 void removeBehavior(Behavior behavior)
          DOCUMENT ME!
abstract  java.util.Set reproduce(Individual individual, java.util.Set individuals)
          DOCUMENT ME!
 void setBehaviors(java.util.Set behaviors)
          DOCUMENT ME!
 void setPredationMode(int mode)
          DOCUMENT ME!
 void setReproductionMode(int mode)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Species

public Species(Taxon taxon)
Creates a new Species object.

Parameters:
taxon - DOCUMENT ME!

Species

public Species(java.lang.String name,
               Taxon taxon)
Creates a new Species object.

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

getName

public java.lang.String getName()
DOCUMENT ME!

Specified by:
getName in interface Named
Returns:
DOCUMENT ME!

getTaxon

public Taxon getTaxon()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getReproductionMode

public int getReproductionMode()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setReproductionMode

public void setReproductionMode(int mode)
DOCUMENT ME!

Parameters:
mode - DOCUMENT ME!

getPredationMode

public int getPredationMode()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setPredationMode

public void setPredationMode(int mode)
DOCUMENT ME!

Parameters:
mode - 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!

equals

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

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

reproduce

public abstract java.util.Set reproduce(Individual individual,
                                        java.util.Set individuals)
DOCUMENT ME!

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