visad.data.netcdf.in
Class VirtualReal
- java.lang.Object
-
- visad.data.netcdf.in.VirtualData
-
- visad.data.netcdf.in.VirtualScalar
-
- visad.data.netcdf.in.VirtualReal
-
public class VirtualReal extends VirtualScalar
Provides support for a virtual VisAD Real.
-
-
Constructor Summary
Constructors Constructor and Description VirtualReal(RealType type, ucar.netcdf.Variable var, SimpleSet rangeSet, Unit unit, visad.data.netcdf.in.Vetter vetter)Constructs from a scalar type, a 1-D netCDF variable, a range set, a unit, and a value vetter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()Clones this instance.double[]getDoubles(Context context)Gets the double values corresponding to this virtual, data object at a given context.SimpleSetgetRangeSet()Gets the range set of this scalar.UnitgetUnit()Gets the unit of the value.visad.data.netcdf.in.VettergetVetter()Gets the value vetter.booleanisReal()Determines if this is a VirtualReal or not.-
Methods inherited from class visad.data.netcdf.in.VirtualScalar
getData, getDataFactory, getScalarType, getType, getVariable, setDataFactory
-
Methods inherited from class visad.data.netcdf.in.VirtualData
getData, toString
-
-
-
-
Constructor Detail
-
VirtualReal
public VirtualReal(RealType type, ucar.netcdf.Variable var, SimpleSet rangeSet, Unit unit, visad.data.netcdf.in.Vetter vetter)
Constructs from a scalar type, a 1-D netCDF variable, a range set, a unit, and a value vetter.- Parameters:
type- The type of the nested scalar.var- The 1-D netCDF variable.rangeSet- The range set of the values.unit- The unit of the values.vetter- The value vetter.
-
-
Method Detail
-
getRangeSet
public SimpleSet getRangeSet()
Gets the range set of this scalar.- Overrides:
getRangeSetin classVirtualScalar- Returns:
- The range set of this scalar.
-
getUnit
public Unit getUnit()
Gets the unit of the value.- Overrides:
getUnitin classVirtualScalar- Returns:
- The unit of the value.
-
getVetter
public visad.data.netcdf.in.Vetter getVetter()
Gets the value vetter.- Overrides:
getVetterin classVirtualScalar- Returns:
- The value vetter.
-
getDoubles
public double[] getDoubles(Context context) throws java.io.IOException, VisADException
Gets the double values corresponding to this virtual, data object at a given context.- Overrides:
getDoublesin classVirtualScalar- Returns:
- The double values of this virtual, data object. throws VisADException Couldn't create necessary VisAD object. throws IOException I/O failure.
- Throws:
java.io.IOException- I/O failure.VisADException- Couldn't create necessary VisAD object.
-
isReal
public boolean isReal()
Determines if this is a VirtualReal or not.- Overrides:
isRealin classVirtualScalar- Returns:
- true if this is a VirtualReal
-
clone
public java.lang.Object clone()
Clones this instance.- Specified by:
clonein classVirtualData- Returns:
- A (deep) clone of this instance.
-
-
DMelt 3.0 © DataMelt by jWork.ORG