public class RemoteNodeFieldImpl extends RemoteNodeDataImpl implements RemoteNodeField
refABS, 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 |
|---|
RemoteNodeFieldImpl(FieldImpl field)
constructor for rendering without using partitionSet
|
RemoteNodeFieldImpl(FunctionType type,
Set set)
must call setupClusterData after constructor to finish the
"construction"
|
| Modifier and Type | Method and Description |
|---|---|
Data |
adjustSamplingError(Data error,
int error_mode)
return a clone of this, except with ErrorEstimates
combined with values in error, according to error_mode
|
double[][] |
computeRanges(RealType[] reals)
compute ranges of values in this of given RealTypes, using
a dummy DisplayImplJ2D
|
DataShadow |
computeRanges(ShadowType type,
DataShadow shadow)
Recursive version of computeRanges(), called down through
Data object tree.
|
DataShadow |
computeRanges(ShadowType type,
int n)
Compute ranges of values for each of 'n' RealTypes in
DisplayImpl.RealTypeVector.
|
Data |
derivative(int error_mode)
return the tuple of derivatives of this Function with respect to
all RealType components of its domain RealTuple;
propogate errors according to error_mode
|
Data |
derivative(MathType[] derivType_s,
int error_mode)
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
|
Data |
derivative(RealTuple location,
RealType[] d_partial_s,
MathType[] derivType_s,
int error_mode)
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
|
Function |
derivative(RealType d_partial,
int error_mode)
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
|
Function |
derivative(RealType d_partial,
MathType derivType,
int error_mode)
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
|
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
|
Data |
evaluate(Real domain)
Evaluate this Function at domain; for 1-D domains
use default modes for resampling (Data.WEIGHTED_AVERAGE) and
errors (Data.NO_ERRORS)
|
Data |
evaluate(Real domain,
int sampling_mode,
int error_mode)
Evaluate this Function, for 1-D domains, with non-default modes
for resampling and errors
|
Data |
evaluate(RealTuple domain)
Evaluate this Function at domain; use default modes for resampling
(Data.WEIGHTED_AVERAGE) and errors (Data.NO_ERRORS)
|
Data |
evaluate(RealTuple domain,
int sampling_mode,
int error_mode)
Evaluate this Function with non-default modes for resampling and errors
|
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
|
int |
getDomainDimension()
Get the dimension (number of Real components) of this Function's domain
|
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
|
String[][] |
getStringValues()
get String values for Text components
|
MathType |
getType() |
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
|
boolean |
isMissing() |
String |
longString() |
String |
longString(String pre) |
Field |
resample(Set set)
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
|
Field |
resample(Set set,
int sampling_mode,
int error_mode)
Resample range values of this Function to domain samples in set;
return a Field (i.e., a finite sampling of a Function).
|
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)
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
|
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
|
void |
setSamples(RemoteNodeDataImpl[] range) |
sendAgentaddReference, clusterDataEquals, getClusterData, getPartitionSet, local, main, notifyReferences, removeReference, setParent, setupClusterDataabs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, binary, ceil, ceil, changeMathType, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, log, log, 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, unarygetTick, incTickclone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogequals, getRef, hashCode, toString, toStubfinalize, getClass, notify, notifyAll, wait, wait, waitsendAgentclusterDataEquals, getClusterData, setupClusterDatagetTick, incTickabs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, binary, ceil, ceil, changeMathType, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, local, log, log, 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, removeReferencepublic RemoteNodeFieldImpl(FunctionType type, Set set) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic RemoteNodeFieldImpl(FieldImpl field) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic void setSamples(RemoteNodeDataImpl[] range) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic void setSamples(Data[] range, boolean copy) throws VisADException, RemoteException
FieldsetSamples in interface FieldVisADExceptionRemoteExceptionpublic void setSamples(double[][] range)
throws VisADException,
RemoteException
FieldsetSamples in interface FieldVisADExceptionRemoteExceptionpublic void setSamples(float[][] range)
throws VisADException,
RemoteException
FieldsetSamples in interface FieldVisADExceptionRemoteExceptionpublic MathType getType() throws VisADException, RemoteException
getType in interface DatagetType in class RemoteDataImplVisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic boolean isMissing()
throws VisADException,
RemoteException
isMissing in interface DataisMissing in class RemoteDataImplVisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic int getDomainDimension()
throws VisADException,
RemoteException
FunctiongetDomainDimension in interface FunctionVisADExceptionRemoteExceptionpublic Set getDomainSet() throws VisADException, RemoteException
FieldgetDomainSet in interface FieldVisADExceptionRemoteExceptionpublic int getLength()
throws RemoteException
FieldgetLength in interface FieldRemoteExceptionpublic Unit[] getDomainUnits() throws VisADException, RemoteException
FunctiongetDomainUnits in interface FunctionVisADExceptionRemoteExceptionpublic CoordinateSystem getDomainCoordinateSystem() throws VisADException, RemoteException
FunctiongetDomainCoordinateSystem in interface FunctionVisADExceptionRemoteExceptionpublic Data getSample(int index) throws VisADException, RemoteException
FieldgetSample in interface FieldVisADExceptionRemoteExceptionpublic void setSample(RealTuple domain, Data range, boolean copy) throws VisADException, RemoteException
FieldsetSample in interface FieldVisADExceptionRemoteExceptionpublic void setSample(RealTuple domain, Data range) throws VisADException, RemoteException
FieldsetSample in interface FieldVisADExceptionRemoteExceptionpublic void setSample(int index,
Data range,
boolean copy)
throws VisADException,
RemoteException
FieldsetSample in interface FieldVisADExceptionRemoteExceptionpublic void setSample(int index,
Data range)
throws VisADException,
RemoteException
FieldsetSample in interface FieldVisADExceptionRemoteExceptionpublic Field extract(int component) throws VisADException, RemoteException
Fieldextract in interface FieldVisADExceptionRemoteExceptionpublic Field domainMultiply() throws VisADException, RemoteException
FielddomainMultiply in interface FieldVisADExceptionRemoteExceptionpublic Field domainMultiply(int depth) throws VisADException, RemoteException
FielddomainMultiply in interface FieldVisADExceptionRemoteExceptionpublic Field domainFactor(RealType factor) throws VisADException, RemoteException
FielddomainFactor in interface FieldVisADExceptionRemoteExceptionpublic double[][] getValues()
throws VisADException,
RemoteException
FieldgetValues in interface FieldVisADExceptionRemoteExceptionpublic double[][] getValues(boolean copy)
throws VisADException,
RemoteException
FieldgetValues in interface FieldVisADExceptionRemoteExceptionpublic float[][] getFloats()
throws VisADException,
RemoteException
FieldgetFloats in interface FieldVisADExceptionRemoteExceptionpublic float[][] getFloats(boolean copy)
throws VisADException,
RemoteException
FieldgetFloats in interface FieldVisADExceptionRemoteExceptionpublic String[][] getStringValues() throws VisADException, RemoteException
FieldgetStringValues in interface FieldVisADExceptionRemoteExceptionpublic Unit[] getDefaultRangeUnits() throws VisADException, RemoteException
FieldgetDefaultRangeUnits in interface FieldVisADExceptionRemoteExceptionpublic Unit[][] getRangeUnits() throws VisADException, RemoteException
FieldgetRangeUnits in interface FieldVisADExceptionRemoteExceptionpublic CoordinateSystem[] getRangeCoordinateSystem() throws VisADException, RemoteException
FieldgetRangeCoordinateSystem in interface FieldVisADExceptionRemoteExceptionpublic CoordinateSystem[] getRangeCoordinateSystem(int i) throws VisADException, RemoteException
FieldgetRangeCoordinateSystem in interface FieldVisADExceptionRemoteExceptionpublic boolean isFlatField()
throws VisADException,
RemoteException
FieldisFlatField in interface FieldVisADExceptionRemoteExceptionpublic Enumeration domainEnumeration() throws VisADException, 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 FieldVisADExceptionRemoteExceptionpublic Data evaluate(Real domain) throws VisADException, RemoteException
Functionevaluate in interface Functiondomain - value to evaluate at.VisADException - unable to evaluate functionRemoteException - Java RMI exceptionpublic Data evaluate(Real domain, int sampling_mode, int error_mode) throws VisADException, RemoteException
Functionevaluate in interface Functiondomain - 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)VisADException - unable to evaluate functionRemoteException - Java RMI exceptionpublic Data evaluate(RealTuple domain) throws VisADException, RemoteException
Functionevaluate in interface Functiondomain - value to evaluate at.VisADException - unable to evaluate functionRemoteException - Java RMI exceptionpublic Data evaluate(RealTuple domain, int sampling_mode, int error_mode) throws VisADException, RemoteException
Functionevaluate in interface Functiondomain - 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)VisADException - unable to evaluate functionRemoteException - Java RMI exceptionpublic Field resample(Set set) throws VisADException, RemoteException
Functionresample in interface Functionset - finite sampling values for the function.VisADException - unable to resample functionRemoteException - Java RMI exceptionpublic Field resample(Set set, int sampling_mode, int error_mode) throws VisADException, RemoteException
Functionresample in interface Functionset - 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)VisADException - unable to resample functionRemoteException - Java RMI exceptionpublic Data derivative(RealTuple location, RealType[] d_partial_s, MathType[] derivType_s, int error_mode) throws VisADException, RemoteException
Functionderivative in interface FunctionVisADExceptionRemoteExceptionpublic Data derivative(int error_mode) throws VisADException, RemoteException
Functionderivative in interface FunctionVisADExceptionRemoteExceptionpublic Data derivative(MathType[] derivType_s, int error_mode) throws VisADException, RemoteException
Functionderivative in interface FunctionVisADExceptionRemoteExceptionpublic Function derivative(RealType d_partial, int error_mode) throws VisADException, RemoteException
Functionderivative in interface FunctionVisADExceptionRemoteExceptionpublic Function derivative(RealType d_partial, MathType derivType, int error_mode) throws VisADException, RemoteException
Functionderivative in interface FunctionVisADExceptionRemoteExceptionpublic DataShadow computeRanges(ShadowType type, DataShadow shadow) throws VisADException, RemoteException
RemoteDataImplcomputeRanges in interface DatacomputeRanges in class RemoteDataImpltype - ShadowType generated for MathType of thisshadow - DataShadow instance whose contained double[][]
array and animation sampling Set are modified
according to RealType values in this, and used
as return valueVisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic DataShadow computeRanges(ShadowType type, int n) throws VisADException, RemoteException
RemoteDataImplcomputeRanges in interface DatacomputeRanges in class RemoteDataImpltype - ShadowType generated for MathType of thisn - number of RealTypes in DisplayImpl.RealTypeVectorVisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic double[][] computeRanges(RealType[] reals) throws VisADException, RemoteException
RemoteDataImplcomputeRanges in interface DatacomputeRanges in class RemoteDataImplreals - array of RealTypes whose value ranges to computeVisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic Data adjustSamplingError(Data error, int error_mode) throws VisADException, RemoteException
RemoteDataImpladjustSamplingError in interface DataadjustSamplingError in class RemoteDataImplerror_mode - may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;VisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic String longString() throws VisADException, RemoteException
longString in interface DatalongString in class RemoteDataImplVisADExceptionRemoteExceptionpublic String longString(String pre) throws VisADException, RemoteException
longString in interface DatalongString in class RemoteDataImplpre - String added to start of each lineVisADExceptionRemoteExceptionCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.