|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.netcdf.in.VirtualData visad.data.netcdf.in.VirtualScalar
public abstract class VirtualScalar
Provides support for a virtual VisAD Scalar.
Constructor Summary | |
---|---|
VirtualScalar(ScalarType type,
ucar.netcdf.Variable var)
Constructs from a scalar type and a 1-D netCDF variable |
|
VirtualScalar(ScalarType 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 | |
---|---|
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. |
protected abstract Scalar |
getScalar(Context context)
Gets the Scalar object corresponding to this virtual, data object. |
ScalarType |
getScalarType()
Gets the ScalarType of this scalar. |
MathType |
getType()
Gets the MathType of this scalar. |
Unit |
getUnit()
Gets the unit of the value. |
ucar.netcdf.Variable |
getVariable()
Gets the netCDF variable. |
visad.data.netcdf.in.Vetter |
getVetter()
Gets the value vetter. |
boolean |
isReal()
Determines if this is a VirtualReal or not. |
void |
setDataFactory(DataFactory factory)
Sets the factory used to create VisAD data objects. |
Methods inherited from class visad.data.netcdf.in.VirtualData |
---|
clone, getData, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VirtualScalar(ScalarType type, ucar.netcdf.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.public VirtualScalar(ScalarType type, ucar.netcdf.Variable var)
type
- The type of the nested scalar.var
- The 1-D netCDF variable.Method Detail |
---|
public ScalarType getScalarType()
public MathType getType()
getType
in class VirtualData
public boolean isReal()
public SimpleSet getRangeSet()
RuntimeException
- if class doesn't support this.public Unit getUnit()
RuntimeException
- if class doesn't support this.public ucar.netcdf.Variable getVariable()
public visad.data.netcdf.in.Vetter getVetter()
RuntimeException
- if class doesn't support this.public DataImpl getData(Context context) throws InvalidContextException, VisADException, RemoteException, 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.
RemoteException
- if a Java RMI failure occurs.
IOException
- I/O failure.protected abstract Scalar getScalar(Context context) throws VisADException, InvalidContextException, IOException
InvalidContextException
- if the indicial context is invalid.
VisADException
- Couldn't create necessary VisAD object.
RemoteException
- if a Java RMI failure occurs.
IOException
- I/O failure.public double[] getDoubles(Context context) throws IOException, VisADException
VisADException
- Couldn't create necessary VisAD object.
IOException
- I/O failure.
RuntimeException
- if class doesn't support this.public void setDataFactory(DataFactory factory)
setDataFactory
in class VirtualData
factory
- The factory for creating VisAD data objects.public DataFactory getDataFactory()
getDataFactory
in class VirtualData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |