org.jscience.earth
Class SoilComposition

java.lang.Object
  extended by org.jscience.earth.SoilComposition

public class SoilComposition
extends java.lang.Object

A class representing the chemical composition of a soil


Constructor Summary
SoilComposition()
          Creates a new SoilComposition object.
 
Method Summary
 void addComponent(Molecule molecule, double contribution)
          DOCUMENT ME!
 java.util.Set getComponents()
          DOCUMENT ME!
 double getContribution(Molecule molecule)
          DOCUMENT ME!
 void removeComponent(Molecule molecule)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoilComposition

public SoilComposition()
Creates a new SoilComposition object.

Method Detail

getComponents

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

Returns:
DOCUMENT ME!

getContribution

public double getContribution(Molecule molecule)
DOCUMENT ME!

Parameters:
molecule - DOCUMENT ME!
Returns:
DOCUMENT ME!

addComponent

public void addComponent(Molecule molecule,
                         double contribution)
DOCUMENT ME!

Parameters:
molecule - DOCUMENT ME!
contribution - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

removeComponent

public void removeComponent(Molecule molecule)
DOCUMENT ME!

Parameters:
molecule - DOCUMENT ME!