org.jscience.ml.sbml
Class UnitManager

java.lang.Object
  extended by org.jscience.ml.sbml.UnitManager

public final class UnitManager
extends java.lang.Object

Manages a collection of unit definitions. This should be tied to a model, see bug #389.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.


Constructor Summary
UnitManager()
          Creates a new instance of UnitManager
 
Method Summary
 void addUnitDefinition(UnitDefinition definition)
           
static Unit findBaseUnit(java.lang.String name)
           
static java.util.Set getBaseUnits()
          Set[Unit] of the SBML base units.
 java.util.Vector getCompartmentUnits()
           
 java.util.Vector getSpatialSizeUnits()
           
 java.util.Vector getSubstanceUnits()
           
 java.util.List getUnitDefinitions()
          A List[UnitDefinition] of known definitions.
 boolean isUnit(java.lang.String name)
           
 void setUnitDefault(java.lang.String name, UnitDefinition definition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitManager

public UnitManager()
Creates a new instance of UnitManager

Method Detail

findBaseUnit

public static Unit findBaseUnit(java.lang.String name)

getBaseUnits

public static java.util.Set getBaseUnits()
Set[Unit] of the SBML base units.


addUnitDefinition

public void addUnitDefinition(UnitDefinition definition)

getCompartmentUnits

public java.util.Vector getCompartmentUnits()

getSpatialSizeUnits

public java.util.Vector getSpatialSizeUnits()

getSubstanceUnits

public java.util.Vector getSubstanceUnits()

getUnitDefinitions

public java.util.List getUnitDefinitions()
A List[UnitDefinition] of known definitions.


isUnit

public boolean isUnit(java.lang.String name)

setUnitDefault

public void setUnitDefault(java.lang.String name,
                           UnitDefinition definition)