ucar.units
Class SupplementaryBaseQuantity
java.lang.Object
ucar.units.BaseQuantity
ucar.units.SupplementaryBaseQuantity
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, Base
public final class SupplementaryBaseQuantity
- extends BaseQuantity
Provides support for supplementary base quantities. A supplementary
base quantity is one that is dimensionless (e.g. solid angle).
Instances of this class are immutable.
- Version:
- $Id: SupplementaryBaseQuantity.java 64 2006-07-12 22:30:50Z edavis $
- Author:
- Steven R. Emmerson
- See Also:
- Serialized Form
|
Constructor Summary |
|
SupplementaryBaseQuantity(java.lang.String name,
java.lang.String symbol)
Constructs from a name and symbol. |
protected |
SupplementaryBaseQuantity(java.lang.String name,
java.lang.String symbol,
boolean trusted)
Constructs from a name and symbol. |
|
Method Summary |
boolean |
isDimensionless()
Indicates whether or not this quantity is dimensionless. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SupplementaryBaseQuantity
public SupplementaryBaseQuantity(java.lang.String name,
java.lang.String symbol)
throws NameException
- Constructs from a name and symbol.
- Parameters:
name - The name of the quantity.symbol - The symbol for the quantity.
- Throws:
NameException - Bad quantity name.
SupplementaryBaseQuantity
protected SupplementaryBaseQuantity(java.lang.String name,
java.lang.String symbol,
boolean trusted)
- Constructs from a name and symbol. This is a trusted constructor for
use by the superclass only.
- Parameters:
name - The name of the quantity.symbol - The symbol for the quantity.
isDimensionless
public boolean isDimensionless()
- Indicates whether or not this quantity is dimensionless. Supplementary
base quantities are dimensionless by definition.
- Specified by:
isDimensionless in interface Base- Specified by:
isDimensionless in class BaseQuantity
- Returns:
true.