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

Class ArrayVariableAdapter



  • public class ArrayVariableAdapter
    extends VariableAdapter
    Provides support for adapting DODS DArray variables to the VisAD data-import context.

    Instances are immutable.

    • Method Detail

      • arrayVariableAdapter

        public static ArrayVariableAdapter arrayVariableAdapter(dods.dap.DArray array,
                                                                dods.dap.DAS das,
                                                                VariableAdapterFactory factory)
                                                         throws VisADException,
                                                                java.rmi.RemoteException
        Returns an instance corresponding to a DODS DArray.
        Parameters:
        array - The DODS DArray. Only the DODS metadata is used: the array needn't have any actual data.
        das - The DODS DAS in which the attribute table for the DODS variable is embedded.
        factory - A factory for creating variable adapters.
        Returns:
        An instance of this class corresponding to the input arguments.
        Throws:
        VisADException - VisAD failure.
        java.rmi.RemoteException - Java RMI failure.
      • getFunctionType

        public FunctionType getFunctionType()
        Returns the VisAD FunctionType of this instance.
        Returns:
        The FunctionType of this instance.
      • getRepresentationalSets

        public SimpleSet[] getRepresentationalSets(boolean copy)
        Returns the VisAD Sets that will be used to represent the data values in the range of a VisAD FlatField.
        Overrides:
        getRepresentationalSets in class VariableAdapter
        Parameters:
        copy - If true, then the array is copied.
        Returns:
        The VisAD Sets used to represent the data values in the range of a FlatField.
      • data

        public DataImpl data(dods.dap.DArray array,
                             boolean copy)
                      throws VisADException,
                             java.rmi.RemoteException
        Returns the VisAD DataImpl corresponding to a DODS DArray.
        Overrides:
        data in class VariableAdapter
        Parameters:
        array - The DODS DArray to have the corresponding VisAD data object returned. The array must be compatible with the array used to construct this instance.
        copy - If true, then data values are copied.
        Returns:
        The VisAD data object of this instance. The object will be a FieldImpl and may be a FlatField or FileFlatField.
        Throws:
        VisADException - VisAD failure. Possible the array wasn't compatible with the array used to construct this instance.
        java.rmi.RemoteException - Java RMI failure.
      • setField

        public void setField(dods.dap.DArray array,
                             FieldImpl field,
                             boolean copy)
                      throws VisADException,
                             java.rmi.RemoteException
        Sets a compatible VisAD Field. This method is used by GridVariableAdapter for the DArray portion of a DODS DGrid.
        Parameters:
        array - The DODS DArray to be used to set a compatible VisAD Field. The array must be compatible with the array used to construct this instance.
        copy - If true, then the data values are copied.
        field - The VisAD Field to be set. The field must be compatible with the array.
        Throws:
        VisADException
        java.rmi.RemoteException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.