Documentation of 'visad.RemoteFieldImpl' Java class
RemoteFieldImpl
visad

Class RemoteFieldImpl

    • Constructor Detail

      • RemoteFieldImpl

        public RemoteFieldImpl(FieldImpl field)
                        throws java.rmi.RemoteException
        construct a RemoteFieldImpl object to provide remote access to field
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • setSamples

        public void setSamples(Data[] range,
                               boolean copy)
                        throws VisADException,
                               java.rmi.RemoteException
        methods adapted from Field
        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
      • getLength

        public int getLength()
                      throws VisADException,
                             java.rmi.RemoteException
        Description copied from interface: Field
        get number of samples
        Specified by:
        getLength in interface Field
        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)
                       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,
                              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(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
      • 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
      • 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
        combine domains of two outermost nested Fields into a single domain and Field
        Specified by:
        domainMultiply 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
      • 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
      • 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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.