visad.data.dods
Class VectorAccessor
- java.lang.Object
-
- visad.data.FileAccessor
-
- visad.data.dods.VectorAccessor
-
public class VectorAccessor extends FileAccessor
Provides support for accessing a DODS primitive vector as a VisADFileFlatField.Instances are immutable.
-
-
Constructor Summary
Constructors Constructor and Description VectorAccessor(FunctionType funcType, VectorAdapter vectorAdapter, SampledSet domain, dods.dap.PrimitiveVector vector)Constructs from a function-type, a vector adapter, a domain and a DODS primitive vector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description FlatFieldgetFlatField()Returns a VisADFlatFieldcorresponding to this instance.FunctionTypegetFunctionType()double[][]readFlatField(FlatField template, int[] fileLocation)Throws a VisADError.voidwriteFile(int[] fileLocation, Data range)Throws a VisADError.voidwriteFlatField(double[][] values, FlatField template, int[] fileLocation)Throws a VisADError.
-
-
-
Constructor Detail
-
VectorAccessor
public VectorAccessor(FunctionType funcType, VectorAdapter vectorAdapter, SampledSet domain, dods.dap.PrimitiveVector vector)
Constructs from a function-type, a vector adapter, a domain and a DODS primitive vector.- Parameters:
funcType- The function-type for the FlatField.vectorAdapter- The vector adapter corresponding to the DODS primitive vector.domain- The domain for the FileFlatField.vector- The DODS primitive vector.
-
-
Method Detail
-
getFunctionType
public FunctionType getFunctionType()
- Specified by:
getFunctionTypein classFileAccessor
-
getFlatField
public FlatField getFlatField() throws VisADException, java.rmi.RemoteException
Returns a VisADFlatFieldcorresponding to this instance.- Specified by:
getFlatFieldin classFileAccessor- Returns:
- A FlatField corresponding to the construction arguments.
- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
writeFlatField
public void writeFlatField(double[][] values, FlatField template, int[] fileLocation)Throws a VisADError.- Specified by:
writeFlatFieldin classFileAccessor- Parameters:
values- Some values.template- A template FlatField.fileLocation- An array of positional parameters.- Throws:
VisADError- This method does nothing and should not have been invoked. Always thrown.
-
readFlatField
public double[][] readFlatField(FlatField template, int[] fileLocation)
Throws a VisADError.- Specified by:
readFlatFieldin classFileAccessor- Parameters:
template- A template FlatField.fileLocation- An array of positional parameters.- Returns:
null.- Throws:
VisADError- This method does nothing and should not have been invoked. Always thrown.
-
writeFile
public void writeFile(int[] fileLocation, Data range)Throws a VisADError.- Specified by:
writeFilein classFileAccessor- Parameters:
fileLocation- An array of positional parameters.range- The range of a FlatField.- Throws:
VisADError- This method does nothing and should not have been invoked. Always thrown.
-
-
DMelt 3.0 © DataMelt by jWork.ORG