Documentation of 'visad.cluster.RemoteNodeFieldImpl' Java class
RemoteNodeFieldImpl
visad.cluster

Class RemoteNodeFieldImpl

    • Constructor Detail

      • RemoteNodeFieldImpl

        public RemoteNodeFieldImpl(FunctionType type,
                                   Set set)
                            throws VisADException,
                                   java.rmi.RemoteException
        must call setupClusterData after constructor to finish the "construction"
        Throws:
        VisADException
        java.rmi.RemoteException
      • RemoteNodeFieldImpl

        public RemoteNodeFieldImpl(FieldImpl field)
                            throws VisADException,
                                   java.rmi.RemoteException
        constructor for rendering without using partitionSet
        Throws:
        VisADException
        java.rmi.RemoteException
    • Method Detail

      • setSamples

        public void setSamples(Data[] range,
                               boolean copy)
                        throws VisADException,
                               java.rmi.RemoteException
        Description copied from interface: Field
        set the range samples of the function; the order of range samples must be the same as the order of domain indices in the DomainSet; copy range objects if copy is true; should use same MathType object in each Data object in range array
        Specified by:
        setSamples in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSamples

        public void setSamples(double[][] range)
                        throws VisADException,
                               java.rmi.RemoteException
        Description copied from interface: Field
        set range array as range values of this Field; this must have a Flat range; the array is dimensioned float[number_of_range_components][number_of_range_samples]; the order of range values must be the same as the order of domain indices in the DomainSet
        Specified by:
        setSamples in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSamples

        public void setSamples(float[][] range)
                        throws VisADException,
                               java.rmi.RemoteException
        Description copied from interface: Field
        set range array as range values of this Field; this must have a Flat range; the array is dimensioned float[number_of_range_components][number_of_range_samples]; the order of range values must be the same as the order of domain indices in the DomainSet
        Specified by:
        setSamples in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • isMissing

        public boolean isMissing()
                          throws VisADException,
                                 java.rmi.RemoteException
        Specified by:
        isMissing in interface Data
        Overrides:
        isMissing in class RemoteDataImpl
        Returns:
        flag indicating whether this Data has a missing value
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • getDomainDimension

        public int getDomainDimension()
                               throws VisADException,
                                      java.rmi.RemoteException
        Description copied from interface: Function
        Get the dimension (number of Real components) of this Function's domain
        Specified by:
        getDomainDimension in interface Function
        Returns:
        number of RealType components (n in R^n space)
        Throws:
        VisADException
        java.rmi.RemoteException
      • getLength

        public int getLength()
                      throws java.rmi.RemoteException
        Description copied from interface: Field
        get number of samples
        Specified by:
        getLength in interface Field
        Throws:
        java.rmi.RemoteException
      • getDomainUnits

        public Unit[] getDomainUnits()
                              throws VisADException,
                                     java.rmi.RemoteException
        Description copied from interface: Function
        Get the default Units of the Real components of the domain.
        Specified by:
        getDomainUnits in interface Function
        Returns:
        array of Unit-s in the same order as the RealTypes in the domain.
        Throws:
        VisADException
        java.rmi.RemoteException
      • getSample

        public Data getSample(int index)
                       throws VisADException,
                              java.rmi.RemoteException
        Description copied from interface: Field
        get the range value at the index-th sample
        Specified by:
        getSample in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSample

        public void setSample(RealTuple domain,
                              Data range,
                              boolean copy)
                       throws VisADException,
                              java.rmi.RemoteException
        Description copied from interface: Field
        set the range value at the sample nearest to domain
        Specified by:
        setSample in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSample

        public void setSample(RealTuple domain,
                              Data range)
                       throws VisADException,
                              java.rmi.RemoteException
        Description copied from interface: Field
        set the range value at the sample nearest to domain
        Specified by:
        setSample in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSample

        public void setSample(int index,
                              Data range,
                              boolean copy)
                       throws VisADException,
                              java.rmi.RemoteException
        Description copied from interface: Field
        set the range value at the index-th sample
        Specified by:
        setSample in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • setSample

        public void setSample(int index,
                              Data range)
                       throws VisADException,
                              java.rmi.RemoteException
        Description copied from interface: Field
        set the range value at the index-th sample
        Specified by:
        setSample in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • extract

        public Field extract(int component)
                      throws VisADException,
                             java.rmi.RemoteException
        Description copied from interface: Field
        assumes the range type of this is a Tuple and returns a Field with the same domain as this, but whose range samples consist of the specified Tuple component of the range samples of this; in shorthand, this[].component
        Specified by:
        extract in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • domainMultiply

        public Field domainMultiply()
                             throws VisADException,
                                    java.rmi.RemoteException
        Description copied from interface: Field
        combine domains of two outermost nested Fields into a single domain and Field
        Specified by:
        domainMultiply in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • getValues

        public double[][] getValues()
                             throws VisADException,
                                    java.rmi.RemoteException
        Description copied from interface: Field
        invokes getValues(true)
        Specified by:
        getValues in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • getValues

        public double[][] getValues(boolean copy)
                             throws VisADException,
                                    java.rmi.RemoteException
        Description copied from interface: Field
        get the 'Flat' components of this Field's range values in their default range Units (as defined by the range of the Field's FunctionType); if the range type is a RealType it is a 'Flat' component, if the range type is a TupleType its RealType components and RealType components of its RealTupleType components are all 'Flat' components; the return array is dimensioned: double[number_of_flat_components][number_of_range_samples]; return a copy if copy == true
        Specified by:
        getValues in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • getFloats

        public float[][] getFloats()
                            throws VisADException,
                                   java.rmi.RemoteException
        Description copied from interface: Field
        invokes getFloats(true)
        Specified by:
        getFloats in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • getFloats

        public float[][] getFloats(boolean copy)
                            throws VisADException,
                                   java.rmi.RemoteException
        Description copied from interface: Field
        get the 'Flat' components of this Field's range values in their default range Units (as defined by the range of the Field's FunctionType); if the range type is a RealType it is a 'Flat' component, if the range type is a TupleType its RealType components and RealType components of its RealTupleType components are all 'Flat' components; the return array is dimensioned: float[number_of_flat_components][number_of_range_samples]; return a copy if copy == true
        Specified by:
        getFloats in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • getStringValues

        public java.lang.String[][] getStringValues()
                                             throws VisADException,
                                                    java.rmi.RemoteException
        Description copied from interface: Field
        get String values for Text components
        Specified by:
        getStringValues in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • getRangeUnits

        public Unit[][] getRangeUnits()
                               throws VisADException,
                                      java.rmi.RemoteException
        Description copied from interface: Field
        get range Unit-s for 'Flat' components; second index may enumerate samples, if they differ
        Specified by:
        getRangeUnits in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • isFlatField

        public boolean isFlatField()
                            throws VisADException,
                                   java.rmi.RemoteException
        Description copied from interface: Field
        return true if this a FlatField or a RemoteField adapting a FlatField
        Specified by:
        isFlatField in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • domainEnumeration

        public java.util.Enumeration domainEnumeration()
                                                throws VisADException,
                                                       java.rmi.RemoteException
        Description copied from interface: Field
           Here's how to use this:
        
           for (Enumeration e = field.domainEnumeration() ; e.hasMoreElements(); ) {
             RealTuple domain_sample = (RealTuple) e.nextElement();
             Data range = field.evaluate(domain_sample);
           }
        
        Specified by:
        domainEnumeration in interface Field
        Throws:
        VisADException
        java.rmi.RemoteException
      • evaluate

        public Data evaluate(Real domain)
                      throws VisADException,
                             java.rmi.RemoteException
        Description copied from interface: Function
        Evaluate this Function at domain; for 1-D domains use default modes for resampling (Data.WEIGHTED_AVERAGE) and errors (Data.NO_ERRORS)
        Specified by:
        evaluate in interface Function
        Parameters:
        domain - value to evaluate at.
        Returns:
        Data object corresponding to the function value at that domain. may return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to evaluate function
        java.rmi.RemoteException - Java RMI exception
      • evaluate

        public Data evaluate(Real domain,
                             int sampling_mode,
                             int error_mode)
                      throws VisADException,
                             java.rmi.RemoteException
        Description copied from interface: Function
        Evaluate this Function, for 1-D domains, with non-default modes for resampling and errors
        Specified by:
        evaluate in interface Function
        Parameters:
        domain - value to evaluate at.
        sampling_mode - type of interpolation to perform (e.g., Data.WEIGHTED_AVERAGE, Data.NEAREST_NEIGHBOR)
        error_mode - type of error estimation to perform (e.g., Data.INDEPENDENT, Data.DEPENDENT, Data.NO_ERRORS)
        Returns:
        Data object corresponding to the function value at that domain, using the sampling_mode and error_modes specified. May return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to evaluate function
        java.rmi.RemoteException - Java RMI exception
      • evaluate

        public Data evaluate(RealTuple domain)
                      throws VisADException,
                             java.rmi.RemoteException
        Description copied from interface: Function
        Evaluate this Function at domain; use default modes for resampling (Data.WEIGHTED_AVERAGE) and errors (Data.NO_ERRORS)
        Specified by:
        evaluate in interface Function
        Parameters:
        domain - value to evaluate at.
        Returns:
        Data object corresponding to the function value at that domain. may return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to evaluate function
        java.rmi.RemoteException - Java RMI exception
      • evaluate

        public Data evaluate(RealTuple domain,
                             int sampling_mode,
                             int error_mode)
                      throws VisADException,
                             java.rmi.RemoteException
        Description copied from interface: Function
        Evaluate this Function with non-default modes for resampling and errors
        Specified by:
        evaluate in interface Function
        Parameters:
        domain - value to evaluate at.
        sampling_mode - type of interpolation to perform (e.g., Data.WEIGHTED_AVERAGE, Data.NEAREST_NEIGHBOR)
        error_mode - type of error estimation to perform (e.g., Data.INDEPENDENT, Data.DEPENDENT, Data.NO_ERRORS)
        Returns:
        Data object corresponding to the function value at that domain, using the sampling_mode and error_modes specified. May return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to evaluate function
        java.rmi.RemoteException - Java RMI exception
      • resample

        public Field resample(Set set)
                       throws VisADException,
                              java.rmi.RemoteException
        Description copied from interface: Function
        Return a Field of Function values at the samples in set using default sampling_mode (WEIGHTED_AVERAGE) and error_mode (NO_ERRORS); This combines unit conversions, coordinate transforms, resampling and interpolation
        Specified by:
        resample in interface Function
        Parameters:
        set - finite sampling values for the function.
        Returns:
        Data object corresponding to the function value at that domain. may return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to resample function
        java.rmi.RemoteException - Java RMI exception
      • resample

        public Field resample(Set set,
                              int sampling_mode,
                              int error_mode)
                       throws VisADException,
                              java.rmi.RemoteException
        Description copied from interface: Function
        Resample range values of this Function to domain samples in set; return a Field (i.e., a finite sampling of a Function). Use the specified sampling_mode and error_mode. This combines unit conversions, coordinate transforms, resampling and interpolation
        Specified by:
        resample in interface Function
        Parameters:
        set - finite sampling values for the function.
        sampling_mode - type of interpolation to perform (e.g., Data.WEIGHTED_AVERAGE, Data.NEAREST_NEIGHBOR)
        error_mode - type of error estimation to perform (e.g., Data.INDEPENDENT, Data.DEPENDENT, Data.NO_ERRORS)
        Returns:
        Data object corresponding to the function value at that domain, using the sampling_mode and error_modes specified. May return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to resample function
        java.rmi.RemoteException - Java RMI exception
      • derivative

        public Data derivative(RealTuple location,
                               RealType[] d_partial_s,
                               MathType[] derivType_s,
                               int error_mode)
                        throws VisADException,
                               java.rmi.RemoteException
        Description copied from interface: Function
        return the tuple of derivatives of this Function with respect to the RealTypes in d_partial_s; the RealTypes in d_partial_s may occur in this Function's domain RealTupleType, or, if the domain has a CoordinateSystem, in its Reference RealTupleType; set result MathTypes of tuple components to derivType_s; propogate errors according to error_mode
        Specified by:
        derivative in interface Function
        Throws:
        VisADException
        java.rmi.RemoteException
      • derivative

        public Data derivative(int error_mode)
                        throws VisADException,
                               java.rmi.RemoteException
        Description copied from interface: Function
        return the tuple of derivatives of this Function with respect to all RealType components of its domain RealTuple; propogate errors according to error_mode
        Specified by:
        derivative in interface Function
        Throws:
        VisADException
        java.rmi.RemoteException
      • derivative

        public Data derivative(MathType[] derivType_s,
                               int error_mode)
                        throws VisADException,
                               java.rmi.RemoteException
        Description copied from interface: Function
        return the tuple of derivatives of this Function with respect to all RealType components of its domain RealTuple; set result MathTypes of tuple components to derivType_s; propogate errors according to error_mode
        Specified by:
        derivative in interface Function
        Throws:
        VisADException
        java.rmi.RemoteException
      • derivative

        public Function derivative(RealType d_partial,
                                   int error_mode)
                            throws VisADException,
                                   java.rmi.RemoteException
        Description copied from interface: Function
        return the derivative of this Function with respect to d_partial; d_partial may occur in this Function's domain RealTupleType, or, if the domain has a CoordinateSystem, in its Reference RealTupleType; propogate errors according to error_mode
        Specified by:
        derivative in interface Function
        Throws:
        VisADException
        java.rmi.RemoteException
      • derivative

        public Function derivative(RealType d_partial,
                                   MathType derivType,
                                   int error_mode)
                            throws VisADException,
                                   java.rmi.RemoteException
        Description copied from interface: Function
        return the derivative of this Function with respect to d_partial; set result MathType to derivType; d_partial may occur in this Function's domain RealTupleType, or, if the domain has a CoordinateSystem, in its Reference RealTupleType; propogate errors according to error_mode
        Specified by:
        derivative in interface Function
        Throws:
        VisADException
        java.rmi.RemoteException
      • computeRanges

        public DataShadow computeRanges(ShadowType type,
                                        DataShadow shadow)
                                 throws VisADException,
                                        java.rmi.RemoteException
        Description copied from class: RemoteDataImpl
        Recursive version of computeRanges(), called down through Data object tree.
        Specified by:
        computeRanges in interface Data
        Overrides:
        computeRanges in class RemoteDataImpl
        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
      • computeRanges

        public DataShadow computeRanges(ShadowType type,
                                        int n)
                                 throws VisADException,
                                        java.rmi.RemoteException
        Description copied from class: RemoteDataImpl
        Compute ranges of values for each of 'n' RealTypes in DisplayImpl.RealTypeVector. Called from DataRenderer with n = DisplayImpl.getScalarCount().
        Specified by:
        computeRanges in interface Data
        Overrides:
        computeRanges in class RemoteDataImpl
        Parameters:
        type - ShadowType generated for MathType of this
        n - number of RealTypes in DisplayImpl.RealTypeVector
        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
      • computeRanges

        public double[][] computeRanges(RealType[] reals)
                                 throws VisADException,
                                        java.rmi.RemoteException
        Description copied from class: RemoteDataImpl
        compute ranges of values in this of given RealTypes, using a dummy DisplayImplJ2D
        Specified by:
        computeRanges in interface Data
        Overrides:
        computeRanges in class RemoteDataImpl
        Parameters:
        reals - array of RealTypes whose value ranges to compute
        Returns:
        double[reals.length][2] giving the low and high value in this for each RealType in reals
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • adjustSamplingError

        public Data adjustSamplingError(Data error,
                                        int error_mode)
                                 throws VisADException,
                                        java.rmi.RemoteException
        Description copied from class: RemoteDataImpl
        return a clone of this, except with ErrorEstimates combined with values in error, according to error_mode
        Specified by:
        adjustSamplingError in interface Data
        Overrides:
        adjustSamplingError in class RemoteDataImpl
        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

        public java.lang.String longString(java.lang.String pre)
                                    throws VisADException,
                                           java.rmi.RemoteException
        Specified by:
        longString in interface Data
        Overrides:
        longString in class RemoteDataImpl
        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.