ucar.units
Class UnitSystemManager

java.lang.Object
  extended by ucar.units.UnitSystemManager
All Implemented Interfaces:
Serializable

public final class UnitSystemManager
extends Object
implements Serializable

Provides support for managing a UnitSystem.

Version:
$Id: UnitSystemManager.java 64 2006-07-12 22:30:50Z edavis $
Author:
Steven R. Emmerson
See Also:
Serialized Form

Constructor Summary
UnitSystemManager()
           
 
Method Summary
static UnitSystem instance()
          Returns an instance of the system of units.
static void setInstance(UnitSystem instance)
          Sets the system of units.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitSystemManager

public UnitSystemManager()
Method Detail

instance

public static final UnitSystem instance()
                                 throws UnitSystemException
Returns an instance of the system of units.

Returns:
An instance of the system of units.
Throws:
UnitSystemException

setInstance

public static final void setInstance(UnitSystem instance)
                              throws UnitSystemException
Sets the system of units. This must be called before any call to instance().

Parameters:
instance - The system of units.
Throws:
UnitSystemException - instance() was called earlier.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.