|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.data.netcdf.in.VirtualData
visad.data.netcdf.in.VirtualScalar
public class VirtualScalar
Provides support for a virtual VisAD Scalar.
Constructor Summary | |
---|---|
VirtualScalar(ScalarType type,
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 | |
---|---|
java.lang.Object |
clone()
Clones this instance. |
DataImpl |
getData(Context context)
Gets the VisAD data object corresponding to this virtual, data object. |
DataFactory |
getDataFactory()
Returns the factory used to create VisAD data objects. |
double[] |
getDoubles(Context context)
Gets the double values corresponding to this virtual, data object at a given context. |
SimpleSet |
getRangeSet()
Gets the range set of this scalar. |
ScalarType |
getScalarType()
Gets the ScalarType of this scalar. |
MathType |
getType()
Gets the MathType of this scalar. |
Unit |
getUnit()
Gets the unit of the value. |
Variable |
getVariable()
Gets the netCDF variable. |
visad.data.netcdf.in.Vetter |
getVetter()
Gets the value vetter. |
void |
setDataFactory(DataFactory factory)
Sets the factory used to create VisAD data objects. |
Methods inherited from class visad.data.netcdf.in.VirtualData |
---|
getData, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VirtualScalar(ScalarType type, Variable var, SimpleSet rangeSet, Unit unit, visad.data.netcdf.in.Vetter vetter)
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 |
---|
public ScalarType getScalarType()
public MathType getType()
getType
in class VirtualData
public SimpleSet getRangeSet()
public Unit getUnit()
public Variable getVariable()
public visad.data.netcdf.in.Vetter getVetter()
public DataImpl getData(Context context) throws InvalidContextException, VisADException, java.rmi.RemoteException, java.io.IOException
getData
in class VirtualData
context
- The context in which the data is to be
gotten.
InvalidContextException
- if the indicial context is invalid.
VisADException
- Couldn't create necessary VisAD object.
java.rmi.RemoteException
- if a Java RMI failure occurs.
java.io.IOException
- I/O failure.public double[] getDoubles(Context context) throws java.io.IOException, VisADException
java.io.IOException
VisADException
public java.lang.Object clone()
clone
in class VirtualData
public void setDataFactory(DataFactory factory)
setDataFactory
in class VirtualData
factory
- The factory for creating VisAD data objects.public DataFactory getDataFactory()
getDataFactory
in class VirtualData
factory
- The factory for creating VisAD data objects.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |