visad
Class RemoteFieldImpl
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- visad.RemoteThingImpl
-
- visad.RemoteDataImpl
-
- visad.RemoteFunctionImpl
-
- visad.RemoteFieldImpl
-
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, Data, Field, Function, RemoteData, RemoteField, RemoteFunction, RemoteThing, Thing
- Direct Known Subclasses:
- RemoteFlatFieldImpl
public class RemoteFieldImpl extends RemoteFunctionImpl implements RemoteField
RemoteFieldImpl is the VisAD remote adapter for FieldImpl.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface visad.Data
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 Summary
Constructors Constructor and Description RemoteFieldImpl(FieldImpl field)construct a RemoteFieldImpl object to provide remote access to field
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.EnumerationdomainEnumeration()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); }FielddomainFactor(RealType factor)factor Field domain into domains of two nested FieldsFielddomainMultiply()combine domains of two outermost nested Fields into a single domain and FieldFielddomainMultiply(int depth)combine domains to depth, if possibleFieldextract(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[].componentUnit[]getDefaultRangeUnits()get default range Unit-s for 'Flat' componentsCoordinateSystemgetDomainCoordinateSystem()Get the CoordinateSystem associated with the domain RealTupleSetgetDomainSet()get the domain SetUnit[]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 == trueintgetLength()get number of samplesCoordinateSystem[]getRangeCoordinateSystem()get range CoordinateSystem for 'RealTuple' range; index may enumerate samples, if they differCoordinateSystem[]getRangeCoordinateSystem(int i)get range CoordinateSystem for 'RealTuple' components; index may enumerate samples, if they differUnit[][]getRangeUnits()get range Unit-s for 'Flat' components; second index may enumerate samples, if they differDatagetSample(int index)get the range value at the index-th samplejava.lang.String[][]getStringValues()get String values for Text componentsdouble[][]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 == truebooleanisFlatField()return true if this a FlatField or a RemoteField adapting a FlatFieldvoidsetSample(int index, Data range)set the range value at the index-th samplevoidsetSample(int index, Data range, boolean copy)set the range value at the index-th samplevoidsetSample(RealTuple domain, Data range)set the range value at the sample nearest to domainvoidsetSample(RealTuple domain, Data range, boolean copy)set the range value at the sample nearest to domainvoidsetSamples(Data[] range, boolean copy)methods adapted from FieldvoidsetSamples(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 DomainSetvoidsetSamples(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-
Methods inherited from class visad.RemoteFunctionImpl
derivative, derivative, derivative, derivative, derivative, evaluate, evaluate, evaluate, evaluate, getDomainDimension, resample, resample
-
Methods inherited from class visad.RemoteDataImpl
abs, 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, unary
-
Methods inherited from class visad.RemoteThingImpl
addReference, getTick, incTick, removeReference
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
-
Methods inherited from interface visad.Function
derivative, derivative, derivative, derivative, derivative, evaluate, evaluate, evaluate, evaluate, getDomainDimension, resample, resample
-
Methods inherited from interface visad.Data
abs, 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, unary
-
Methods inherited from interface visad.Thing
addReference, removeReference
-
Methods inherited from interface visad.RemoteThing
getTick, incTick
-
-
-
-
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:
setSamplesin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
setSamples
public void setSamples(double[][] range) throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldset 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:
setSamplesin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
setSamples
public void setSamples(float[][] range) throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldset 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:
setSamplesin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getDomainSet
public Set getDomainSet() throws VisADException, java.rmi.RemoteException
Description copied from interface:Fieldget the domain Set- Specified by:
getDomainSetin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getLength
public int getLength() throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldget number of samples- Specified by:
getLengthin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getDomainUnits
public Unit[] getDomainUnits() throws VisADException, java.rmi.RemoteException
Description copied from interface:FunctionGet the default Units of the Real components of the domain.- Specified by:
getDomainUnitsin interfaceFunction- Overrides:
getDomainUnitsin classRemoteFunctionImpl- Returns:
- array of Unit-s in the same order as the RealTypes in the domain.
- Throws:
VisADExceptionjava.rmi.RemoteException
-
getDomainCoordinateSystem
public CoordinateSystem getDomainCoordinateSystem() throws VisADException, java.rmi.RemoteException
Description copied from interface:FunctionGet the CoordinateSystem associated with the domain RealTuple- Specified by:
getDomainCoordinateSystemin interfaceFunction- Overrides:
getDomainCoordinateSystemin classRemoteFunctionImpl- Returns:
- CoordinateSystem of the domain
- Throws:
VisADExceptionjava.rmi.RemoteException
-
getSample
public Data getSample(int index) throws VisADException, java.rmi.RemoteException
Description copied from interface:Fieldget the range value at the index-th sample- Specified by:
getSamplein interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
setSample
public void setSample(RealTuple domain, Data range) throws VisADException, java.rmi.RemoteException
Description copied from interface:Fieldset the range value at the sample nearest to domain- Specified by:
setSamplein interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
setSample
public void setSample(RealTuple domain, Data range, boolean copy) throws VisADException, java.rmi.RemoteException
Description copied from interface:Fieldset the range value at the sample nearest to domain- Specified by:
setSamplein interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
setSample
public void setSample(int index, Data range) throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldset the range value at the index-th sample- Specified by:
setSamplein interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
setSample
public void setSample(int index, Data range, boolean copy) throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldset the range value at the index-th sample- Specified by:
setSamplein interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
extract
public Field extract(int component) throws VisADException, java.rmi.RemoteException
Description copied from interface:Fieldassumes 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:
extractin interfaceField- Throws:
VisADExceptionjava.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:
domainMultiplyin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
domainMultiply
public Field domainMultiply(int depth) throws VisADException, java.rmi.RemoteException
combine domains to depth, if possible- Specified by:
domainMultiplyin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
domainFactor
public Field domainFactor(RealType factor) throws VisADException, java.rmi.RemoteException
factor Field domain into domains of two nested Fields- Specified by:
domainFactorin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getFloats
public float[][] getFloats() throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldinvokes getFloats(true)- Specified by:
getFloatsin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getFloats
public float[][] getFloats(boolean copy) throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldget 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:
getFloatsin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getValues
public double[][] getValues() throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldinvokes getValues(true)- Specified by:
getValuesin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getValues
public double[][] getValues(boolean copy) throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldget 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:
getValuesin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getStringValues
public java.lang.String[][] getStringValues() throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldget String values for Text components- Specified by:
getStringValuesin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getDefaultRangeUnits
public Unit[] getDefaultRangeUnits() throws VisADException, java.rmi.RemoteException
Description copied from interface:Fieldget default range Unit-s for 'Flat' components- Specified by:
getDefaultRangeUnitsin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getRangeUnits
public Unit[][] getRangeUnits() throws VisADException, java.rmi.RemoteException
Description copied from interface:Fieldget range Unit-s for 'Flat' components; second index may enumerate samples, if they differ- Specified by:
getRangeUnitsin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getRangeCoordinateSystem
public CoordinateSystem[] getRangeCoordinateSystem() throws VisADException, java.rmi.RemoteException
Description copied from interface:Fieldget range CoordinateSystem for 'RealTuple' range; index may enumerate samples, if they differ- Specified by:
getRangeCoordinateSystemin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
getRangeCoordinateSystem
public CoordinateSystem[] getRangeCoordinateSystem(int i) throws VisADException, java.rmi.RemoteException
Description copied from interface:Fieldget range CoordinateSystem for 'RealTuple' components; index may enumerate samples, if they differ- Specified by:
getRangeCoordinateSystemin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
isFlatField
public boolean isFlatField() throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:Fieldreturn true if this a FlatField or a RemoteField adapting a FlatField- Specified by:
isFlatFieldin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
domainEnumeration
public java.util.Enumeration domainEnumeration() throws VisADException, java.rmi.RemoteExceptionDescription copied from interface:FieldHere'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:
domainEnumerationin interfaceField- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG