public abstract class ScalarQuantity extends Quantity
Modifier | Constructor and Description |
---|---|
protected |
ScalarQuantity(visad.RealTupleType realTupleType)
Constructs from an existing
RealTupleType . |
protected |
ScalarQuantity(visad.RealType realType)
Constructs from an existing
RealType . |
protected |
ScalarQuantity(visad.RealType realType,
visad.CoordinateSystem defaultCS)
Constructs from an existing
RealType and default CoordinateSystem . |
protected |
ScalarQuantity(visad.RealType realType,
visad.CoordinateSystem defaultCS,
visad.Set defaultSet)
Constructs from an existing
RealType , default CoordinateSystem , and default sampling set. |
protected |
ScalarQuantity(java.lang.String name,
visad.Unit unit,
visad.Set set)
Constructs from a name, default unit, and default sampling set.
|
Modifier and Type | Method and Description |
---|---|
protected static visad.RealType |
getRealType(java.lang.String name,
visad.Unit unit)
Returns a
RealType that is compatible with this class given a
name and a compatible unit. |
protected static visad.RealType |
getRealType(java.lang.String name,
visad.Unit unit,
visad.Set set)
Returns a
RealType that is compatible with this class given a
name, a compatible unit, and a compatible sampling set. |
protected visad.RealType |
realType()
Returns the associated
RealType . |
realTupleType, setRealTupleType
protected ScalarQuantity(java.lang.String name, visad.Unit unit, visad.Set set) throws visad.VisADException
name
- The name.unit
- The default unit.set
- The default sampling set.visad.VisADException
- if a core VisAD failure occurs.protected ScalarQuantity(visad.RealType realType) throws visad.VisADException
RealType
.realType
- The existing RealType.visad.VisADException
- if a core VisAD failure occurs.protected ScalarQuantity(visad.RealType realType, visad.CoordinateSystem defaultCS) throws visad.VisADException
RealType
and default CoordinateSystem
.realType
- The existing RealType.defaultCS
- The default CoordinateSystem.visad.VisADException
- if a core VisAD failure occurs.protected ScalarQuantity(visad.RealType realType, visad.CoordinateSystem defaultCS, visad.Set defaultSet) throws visad.VisADException
RealType
, default CoordinateSystem
, and default sampling set.realType
- The existing RealType.defaultCS
- The default CoordinateSystem.defaultSet
- The default sampling set.visad.VisADException
- if a core VisAD failure occurs.protected ScalarQuantity(visad.RealTupleType realTupleType)
RealTupleType
.realTupleType
- The existing RealTupleType.protected static visad.RealType getRealType(java.lang.String name, visad.Unit unit) throws visad.TypeException, visad.VisADException
RealType
that is compatible with this class given a
name and a compatible unit.name
- The name for the RealType.unit
- A compatible unit for the RealType.visad.TypeException
- if a necessary RealType can't be created.visad.VisADException
- if a core VisAD failure occurs.protected static visad.RealType getRealType(java.lang.String name, visad.Unit unit, visad.Set set) throws visad.TypeException, visad.VisADException
RealType
that is compatible with this class given a
name, a compatible unit, and a compatible sampling set.name
- The name for the RealType.unit
- A compatible unit for the RealType.set
- A compatible sampling set for the RealType.visad.TypeException
- if a necessary RealType can't be created.visad.VisADException
- if a core VisAD failure occurs.protected final visad.RealType realType() throws visad.VisADException
RealType
.RealType
.visad.VisADException