public class RemoteFieldImpl extends RemoteFunctionImpl implements RemoteField
ABS, ACOS, ACOS_DEGREES, ADD, ASIN, ASIN_DEGREES, ATAN, ATAN_DEGREES, ATAN2, ATAN2_DEGREES, CEIL, COS, COS_DEGREES, DEGREES_TO_RADIANS, DEPENDENT, DIVIDE, EXP, FLOOR, INDEPENDENT, INV_ATAN2, INV_ATAN2_DEGREES, INV_DIVIDE, INV_POW, INV_REMAINDER, INV_SUBTRACT, LOG, MAX, MIN, MULTIPLY, NEAREST_NEIGHBOR, NEGATE, NO_ERRORS, NOP, POW, RADIANS_TO_DEGREES, REMAINDER, RINT, ROUND, SIN, SIN_DEGREES, SQRT, SUBTRACT, TAN, TAN_DEGREES, WEIGHTED_AVERAGE| Constructor and Description |
|---|
RemoteFieldImpl(FieldImpl field)
construct a RemoteFieldImpl object to provide remote
access to field
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Enumeration |
domainEnumeration()
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);
}
|
Field |
domainFactor(RealType factor)
factor Field domain into domains of two nested Fields
|
Field |
domainMultiply()
combine domains of two outermost nested Fields into a single
domain and Field
|
Field |
domainMultiply(int depth)
combine domains to depth, if possible
|
Field |
extract(int component)
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
|
Unit[] |
getDefaultRangeUnits()
get default range Unit-s for 'Flat' components
|
CoordinateSystem |
getDomainCoordinateSystem()
Get the CoordinateSystem associated with the domain RealTuple
|
Set |
getDomainSet()
get the domain Set
|
Unit[] |
getDomainUnits()
Get the default Units of the Real components of the domain.
|
float[][] |
getFloats()
invokes getFloats(true)
|
float[][] |
getFloats(boolean copy)
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
|
int |
getLength()
get number of samples
|
CoordinateSystem[] |
getRangeCoordinateSystem()
get range CoordinateSystem for 'RealTuple' range;
index may enumerate samples, if they differ
|
CoordinateSystem[] |
getRangeCoordinateSystem(int i)
get range CoordinateSystem for 'RealTuple' components;
index may enumerate samples, if they differ
|
Unit[][] |
getRangeUnits()
get range Unit-s for 'Flat' components;
second index may enumerate samples, if they differ
|
Data |
getSample(int index)
get the range value at the index-th sample
|
java.lang.String[][] |
getStringValues()
get String values for Text components
|
double[][] |
getValues()
invokes getValues(true)
|
double[][] |
getValues(boolean copy)
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
|
boolean |
isFlatField()
return true if this a FlatField or a RemoteField adapting a FlatField
|
void |
setSample(int index,
Data range)
set the range value at the index-th sample
|
void |
setSample(int index,
Data range,
boolean copy)
set the range value at the index-th sample
|
void |
setSample(RealTuple domain,
Data range)
set the range value at the sample nearest to domain
|
void |
setSample(RealTuple domain,
Data range,
boolean copy)
set the range value at the sample nearest to domain
|
void |
setSamples(Data[] range,
boolean copy)
methods adapted from Field
|
void |
setSamples(double[][] range)
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
|
void |
setSamples(float[][] range)
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
|
derivative, derivative, derivative, derivative, derivative, evaluate, evaluate, evaluate, evaluate, getDomainDimension, resample, resampleabs, abs, acos, acos, acosDegrees, acosDegrees, add, add, adjustSamplingError, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, isMissing, local, log, log, longString, longString, max, max, min, min, multiply, multiply, negate, negate, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary, unaryaddReference, getTick, incTick, removeReferenceclone, exportObject, exportObject, exportObject, unexportObjectequals, getRef, hashCode, toString, toStubfinalize, getClass, notify, notifyAll, wait, wait, waitderivative, derivative, derivative, derivative, derivative, evaluate, evaluate, evaluate, evaluate, getDomainDimension, resample, resampleabs, abs, acos, acos, acosDegrees, acosDegrees, add, add, adjustSamplingError, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, isMissing, local, log, log, longString, longString, max, max, min, min, multiply, multiply, negate, negate, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary, unaryaddReference, removeReferencegetTick, incTickpublic RemoteFieldImpl(FieldImpl field) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void setSamples(Data[] range, boolean copy) throws VisADException, java.rmi.RemoteException
setSamples in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic void setSamples(double[][] range)
throws VisADException,
java.rmi.RemoteException
FieldsetSamples in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic void setSamples(float[][] range)
throws VisADException,
java.rmi.RemoteException
FieldsetSamples in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic Set getDomainSet() throws VisADException, java.rmi.RemoteException
FieldgetDomainSet in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic int getLength()
throws VisADException,
java.rmi.RemoteException
FieldgetLength in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic Unit[] getDomainUnits() throws VisADException, java.rmi.RemoteException
FunctiongetDomainUnits in interface FunctiongetDomainUnits in class RemoteFunctionImplVisADExceptionjava.rmi.RemoteExceptionpublic CoordinateSystem getDomainCoordinateSystem() throws VisADException, java.rmi.RemoteException
FunctiongetDomainCoordinateSystem in interface FunctiongetDomainCoordinateSystem in class RemoteFunctionImplVisADExceptionjava.rmi.RemoteExceptionpublic Data getSample(int index) throws VisADException, java.rmi.RemoteException
FieldgetSample in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic void setSample(RealTuple domain, Data range) throws VisADException, java.rmi.RemoteException
FieldsetSample in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic void setSample(RealTuple domain, Data range, boolean copy) throws VisADException, java.rmi.RemoteException
FieldsetSample in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic void setSample(int index,
Data range)
throws VisADException,
java.rmi.RemoteException
FieldsetSample in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic void setSample(int index,
Data range,
boolean copy)
throws VisADException,
java.rmi.RemoteException
FieldsetSample in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic Field extract(int component) throws VisADException, java.rmi.RemoteException
Fieldextract in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic Field domainMultiply() throws VisADException, java.rmi.RemoteException
domainMultiply in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic Field domainMultiply(int depth) throws VisADException, java.rmi.RemoteException
domainMultiply in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic Field domainFactor(RealType factor) throws VisADException, java.rmi.RemoteException
domainFactor in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic float[][] getFloats()
throws VisADException,
java.rmi.RemoteException
FieldgetFloats in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic float[][] getFloats(boolean copy)
throws VisADException,
java.rmi.RemoteException
FieldgetFloats in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic double[][] getValues()
throws VisADException,
java.rmi.RemoteException
FieldgetValues in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic double[][] getValues(boolean copy)
throws VisADException,
java.rmi.RemoteException
FieldgetValues in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic java.lang.String[][] getStringValues()
throws VisADException,
java.rmi.RemoteException
FieldgetStringValues in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic Unit[] getDefaultRangeUnits() throws VisADException, java.rmi.RemoteException
FieldgetDefaultRangeUnits in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic Unit[][] getRangeUnits() throws VisADException, java.rmi.RemoteException
FieldgetRangeUnits in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic CoordinateSystem[] getRangeCoordinateSystem() throws VisADException, java.rmi.RemoteException
FieldgetRangeCoordinateSystem in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic CoordinateSystem[] getRangeCoordinateSystem(int i) throws VisADException, java.rmi.RemoteException
FieldgetRangeCoordinateSystem in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic boolean isFlatField()
throws VisADException,
java.rmi.RemoteException
FieldisFlatField in interface FieldVisADExceptionjava.rmi.RemoteExceptionpublic java.util.Enumeration domainEnumeration()
throws VisADException,
java.rmi.RemoteException
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);
}
domainEnumeration in interface FieldVisADExceptionjava.rmi.RemoteException