visad.data.netcdf.in
Class VirtualField
- java.lang.Object
-
- visad.data.netcdf.in.VirtualData
-
- visad.data.netcdf.in.VirtualField
-
- Direct Known Subclasses:
- VirtualFlatField
public class VirtualField extends VirtualData
Provides support for a virtual VisAD Field.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()Clones this instance.DataImplgetData(Context context)Gets the VisAD data object corresponding to this virtual, data object.DataFactorygetDataFactory()Returns the factory used to create VisAD data objects.SampledSetgetDomainSet()Gets the domain sampling set of this virtual field.FunctionTypegetFunctionType()Gets the FunctionType of this virtual Field.VirtualTuplegetRangeTuple()Gets the range tuple of this virtual field.MathTypegetType()Gets the MathType of this virtual Field.static VirtualFieldnewVirtualField(FunctionType funcType, SampledSet domainSet, VirtualTuple rangeTuple)Factory method for creating a new instance.static VirtualFieldnewVirtualField(SampledSet domainSet, VirtualTuple rangeTuple)Factory method for creating a new instance.voidsetDataFactory(DataFactory factory)Sets the factory used to create VisAD data objects.-
Methods inherited from class visad.data.netcdf.in.VirtualData
getData, toString
-
-
-
-
Method Detail
-
newVirtualField
public static VirtualField newVirtualField(SampledSet domainSet, VirtualTuple rangeTuple) throws VisADException
Factory method for creating a new instance.- Parameters:
domainSet- The domain sampling set of the field.rangeTuple- The range of the field.- Returns:
- The corresponding VirtualField.
- Throws:
VisADException- Couldn't created necessary VisAD object.
-
newVirtualField
public static VirtualField newVirtualField(FunctionType funcType, SampledSet domainSet, VirtualTuple rangeTuple)
Factory method for creating a new instance.- Parameters:
funcType- The VisAD FunctionType of the field.domainSet- The domain sampling set of the field.rangeTuple- The range of the field.- Returns:
- The corresponding VirtualField.
-
getFunctionType
public FunctionType getFunctionType()
Gets the FunctionType of this virtual Field.- Returns:
- The FunctionType of this virtual Field.
-
getType
public MathType getType()
Gets the MathType of this virtual Field.- Specified by:
getTypein classVirtualData- Returns:
- The FunctionType of this virtual Field.
-
getDomainSet
public SampledSet getDomainSet()
Gets the domain sampling set of this virtual field.- Returns:
- The domain sampling set of this field.
-
getRangeTuple
public VirtualTuple getRangeTuple()
Gets the range tuple of this virtual field.- Returns:
- The range tuple of this virtual field.
-
getData
public DataImpl getData(Context context) throws VisADException, java.rmi.RemoteException, java.io.IOException
Gets the VisAD data object corresponding to this virtual, data object.- Specified by:
getDatain classVirtualData- Parameters:
context- The context in which the data is to be retrieved.- Returns:
- The VisAD Field corresponding to this virtual Field.
- Throws:
VisADException- Couldn't created necessary VisAD object.java.rmi.RemoteException- Remote access failure.java.io.IOException- I/O failure.
-
clone
public java.lang.Object clone()
Clones this instance.- Specified by:
clonein classVirtualData- Returns:
- A (deep) clone of this instance.
-
setDataFactory
public void setDataFactory(DataFactory factory)
Sets the factory used to create VisAD data objects.- Specified by:
setDataFactoryin classVirtualData- Parameters:
factory- The factory for creating VisAD data objects.
-
getDataFactory
public DataFactory getDataFactory()
Returns the factory used to create VisAD data objects.- Specified by:
getDataFactoryin classVirtualData- Returns:
- factory The factory for creating VisAD data objects.
-
-
DMelt 3.0 © DataMelt by jWork.ORG