visad.data.netcdf
Class QuantityDBManager
- java.lang.Object
-
- visad.data.netcdf.QuantityDBManager
-
- All Implemented Interfaces:
- java.io.Serializable
public final class QuantityDBManager extends java.lang.Object implements java.io.SerializableProvides support for managing a database of quantities. This class insulates the user from knowing or caring, for example, whether or not the quantity database is unchanging or whether it's implemented using singletons.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static QuantityDBinstance()Returns the current instance of the quantity database.static voidmain(java.lang.String[] args)Tests this class by listing the contents -- one per line -- in the following format:( ) in e.g. static voidsetInstance(QuantityDB db)Sets the current instance of the quantity database.
-
-
-
Method Detail
-
instance
public static QuantityDB instance()
Returns the current instance of the quantity database.- Returns:
- The current instance of the quantity database.
-
setInstance
public static void setInstance(QuantityDB db) throws VisADException
Sets the current instance of the quantity database.- Parameters:
db- The new current instance of the quantity database. May benull, in which case the default instance is used.- Throws:
VisADException- Couldn't create necessary VisAD object.
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionTests this class by listing the contents -- one per line -- in the following format:( ) in e.g. VolumicElectricCharge (ElectricChargeDensity) in C/m3 - Throws:
java.lang.Exception
-
-
DMelt 3.0 © DataMelt by jWork.ORG