Documentation of 'visad.data.dods.VectorAccessor' Java class
VectorAccessor
visad.data.dods

Class VectorAccessor



  • public class VectorAccessor
    extends FileAccessor
    Provides support for accessing a DODS primitive vector as a VisAD FileFlatField.

    Instances are immutable.

    • 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

      • getFlatField

        public FlatField getFlatField()
                               throws VisADException,
                                      java.rmi.RemoteException
        Returns a VisAD FlatField corresponding to this instance.
        Specified by:
        getFlatField in class FileAccessor
        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:
        writeFlatField in class FileAccessor
        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:
        readFlatField in class FileAccessor
        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:
        writeFile in class FileAccessor
        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

You see the box below because you did not login.