Documentation of 'visad.TupleIface' Java class
TupleIface
visad

Interface TupleIface

    • Method Detail

      • getDimension

        int getDimension()
                  throws java.rmi.RemoteException
        return number of components
        Throws:
        java.rmi.RemoteException
      • getComponent

        Data getComponent(int i)
                   throws VisADException,
                          java.rmi.RemoteException
        return component for i between 0 and getDimension() - 1
        Throws:
        VisADException
        java.rmi.RemoteException
      • isMissing

        boolean isMissing()
                   throws java.rmi.RemoteException
        Specified by:
        isMissing in interface Data
        Returns:
        flag indicating whether this Data has a missing value
        Throws:
        java.rmi.RemoteException - an RMI error occurred
      • binary

        Data binary(Data data,
                    int op,
                    MathType new_type,
                    int sampling_mode,
                    int error_mode)
             throws VisADException,
                    java.rmi.RemoteException
        Description copied from interface: Data
        Pointwise binary operation between this and data. Applies to Reals, Tuples (recursively to components), and to Field ranges (Field domains implicitly resampled if necessary). Does not apply to Field domains or Sets (regarded as domains of Fields wthout ranges). Data.ADD is only op defined for Text, interpreted as concatenate. MathTypes of this and data must match, or one may match the range of the other if it is a FunctionType.
        Specified by:
        binary in interface Data
        Parameters:
        data - other Data operand for binary operation
        op - may be Data.ADD, Data.SUBTRACT, etc; these include all binary operations defined for Java primitive data types
        new_type - MathType of the result
        sampling_mode - may be Data.NEAREST_NEIGHBOR or Data.WEIGHTED_AVERAGE
        error_mode - may be Data.INDEPENDENT, Data.DEPENDENT or Data.NO_ERRORS;
        Returns:
        result, with MathType = new_type
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • unary

        Data unary(int op,
                   MathType new_type,
                   int sampling_mode,
                   int error_mode)
            throws VisADException,
                   java.rmi.RemoteException
        Description copied from interface: Data
        Pointwise unary operation applied to this. Applies to Reals, Tuples (recursively to components), and to Field ranges (Field domains implicitly resampled if necessary). Does not apply to Field domains, Sets (regarded as domains of Fields wthout ranges) or Text.
        Specified by:
        unary in interface Data
        Parameters:
        op - may be Data.ABS, Data.ACOS, etc; these include all unary operations defined for Java primitive data types
        new_type - MathType of the result
        sampling_mode - may be Data.NEAREST_NEIGHBOR or Data.WEIGHTED_AVERAGE
        error_mode - may be Data.INDEPENDENT, Data.DEPENDENT or Data.NO_ERRORS;
        Returns:
        result, with MathType = new_type
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • computeRanges

        DataShadow computeRanges(ShadowType type,
                                 DataShadow shadow)
                          throws VisADException,
                                 java.rmi.RemoteException
        Description copied from interface: Data
        Recursive version of computeRanges(), called down through Data object tree.
        Specified by:
        computeRanges in interface Data
        Parameters:
        type - ShadowType generated for MathType of this
        shadow - DataShadow instance whose contained double[][] array and animation sampling Set are modified according to RealType values in this, and used as return value
        Returns:
        DataShadow instance containing double[][] array of RealType ranges, and an animation sampling Set
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • adjustSamplingError

        Data adjustSamplingError(Data error,
                                 int error_mode)
                          throws VisADException,
                                 java.rmi.RemoteException
        return a Tuple that clones this, except its ErrorEstimate-s are adjusted for sampling errors in error
        Specified by:
        adjustSamplingError in interface Data
        error_mode - may be Data.INDEPENDENT, Data.DEPENDENT or Data.NO_ERRORS;
        Returns:
        clone of this, except with ErrorEstimates set according to values in error
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • longString

        java.lang.String longString(java.lang.String pre)
                             throws VisADException,
                                    java.rmi.RemoteException
        Specified by:
        longString in interface Data
        Parameters:
        pre - String added to start of each line
        Returns:
        a longer String than returned by toString(), indented by pre (a string of blanks)
        Throws:
        VisADException
        java.rmi.RemoteException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.