visad
Class RemoteFlatFieldImpl
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- visad.RemoteThingImpl
-
- visad.RemoteDataImpl
-
- visad.RemoteFunctionImpl
-
- visad.RemoteFieldImpl
-
- visad.RemoteFlatFieldImpl
-
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, Data, Field, FlatFieldIface, Function, RemoteData, RemoteField, RemoteFlatField, RemoteFunction, RemoteThing, Thing
public class RemoteFlatFieldImpl extends RemoteFieldImpl implements RemoteFlatField
RemoteFlatFieldImpl is the VisAD remote adapter for FlatField.
Another way to approach the problem of moving data to a remote machine would be to have a remote class which serializes a sample and copies it over to the remote machine where it is cached for fast access. This would be a much better approach if the application does a lot of computations on a set of static samples.- 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 RemoteFlatFieldImpl(FlatField flatField)construct a RemoteFieldImpl object to provide remote access to field
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclearMissing()mark this FlatField as non-missingFieldconvertToField()convert this FlatField to a (non-Flat) FieldImplintgetRangeDimension()Gets the number of components in the "flat" range.ErrorEstimate[]getRangeErrors()return array of ErrorEstimates associated with each RealType component of range; each ErrorEstimate is a mean error for all samples of a range RealType componentSet[]getRangeSets()Returns the sampling set of each flat component.double[]getValues(int s_index)get values for 'Flat' components in default range Unit-sbyte[][]grabBytes()voidsetRangeErrors(ErrorEstimate[] errors)set ErrorEstimates associated with each RealType component of rangevoidsetSamples(double[][] range, boolean copy)set range array as range values of this FlatField; the array is dimensioned double[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; copy array if copy flag is truevoidsetSamples(double[][] range, ErrorEstimate[] errors, boolean copy)set the range values of the function including ErrorEstimate-s; the order of range values must be the same as the order of domain indices in the DomainSetvoidsetSamples(float[][] range, boolean copy)set range array as range values of this FlatField; 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; copy array if copy flag is truevoidsetSamples(float[][] range, ErrorEstimate[] errors, boolean copy)set the range values of the function including ErrorEstimate-s; the order of range values must be the same as the order of domain indices in the DomainSetvoidsetSamples(int start, double[][] range)-
Methods inherited from class visad.RemoteFieldImpl
domainEnumeration, domainFactor, domainMultiply, domainMultiply, extract, getDefaultRangeUnits, getDomainCoordinateSystem, getDomainSet, getDomainUnits, getFloats, getFloats, getLength, getRangeCoordinateSystem, getRangeCoordinateSystem, getRangeUnits, getSample, getStringValues, getValues, getValues, isFlatField, setSample, setSample, setSample, setSample, setSamples, setSamples, setSamples
-
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.Field
domainEnumeration, domainFactor, domainMultiply, domainMultiply, extract, getDefaultRangeUnits, getDomainSet, getFloats, getFloats, getLength, getRangeCoordinateSystem, getRangeCoordinateSystem, getRangeUnits, getSample, getStringValues, getValues, getValues, isFlatField, setSample, setSample, setSample, setSample, setSamples, setSamples, setSamples
-
Methods inherited from interface visad.Function
derivative, derivative, derivative, derivative, derivative, evaluate, evaluate, evaluate, evaluate, getDomainCoordinateSystem, getDomainDimension, getDomainUnits, 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
-
RemoteFlatFieldImpl
public RemoteFlatFieldImpl(FlatField flatField) throws java.rmi.RemoteException, VisADException
construct a RemoteFieldImpl object to provide remote access to field- Throws:
java.rmi.RemoteExceptionVisADException
-
-
Method Detail
-
getRangeSets
public Set[] getRangeSets() throws java.rmi.RemoteException, VisADException
Returns the sampling set of each flat component.- Specified by:
getRangeSetsin interfaceFlatFieldIface- Returns:
- The sampling set of each component in the flat range.
- Throws:
java.rmi.RemoteExceptionVisADException
-
getRangeErrors
public ErrorEstimate[] getRangeErrors() throws java.rmi.RemoteException, VisADException
return array of ErrorEstimates associated with each RealType component of range; each ErrorEstimate is a mean error for all samples of a range RealType component- Specified by:
getRangeErrorsin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
setRangeErrors
public void setRangeErrors(ErrorEstimate[] errors) throws java.rmi.RemoteException, VisADException
set ErrorEstimates associated with each RealType component of range- Specified by:
setRangeErrorsin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
setSamples
public void setSamples(double[][] range, boolean copy) throws java.rmi.RemoteException, VisADExceptionset range array as range values of this FlatField; the array is dimensioned double[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; copy array if copy flag is true- Specified by:
setSamplesin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
setSamples
public void setSamples(float[][] range, boolean copy) throws java.rmi.RemoteException, VisADExceptionset range array as range values of this FlatField; 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; copy array if copy flag is true- Specified by:
setSamplesin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
setSamples
public void setSamples(double[][] range, ErrorEstimate[] errors, boolean copy) throws java.rmi.RemoteException, VisADExceptionset the range values of the function including ErrorEstimate-s; the order of range values must be the same as the order of domain indices in the DomainSet- Specified by:
setSamplesin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
setSamples
public void setSamples(int start, double[][] range) throws java.rmi.RemoteException, VisADException- Specified by:
setSamplesin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
setSamples
public void setSamples(float[][] range, ErrorEstimate[] errors, boolean copy) throws java.rmi.RemoteException, VisADExceptionset the range values of the function including ErrorEstimate-s; the order of range values must be the same as the order of domain indices in the DomainSet- Specified by:
setSamplesin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
grabBytes
public byte[][] grabBytes() throws java.rmi.RemoteException, VisADException- Specified by:
grabBytesin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
getValues
public double[] getValues(int s_index) throws java.rmi.RemoteException, VisADExceptionget values for 'Flat' components in default range Unit-s- Specified by:
getValuesin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
clearMissing
public void clearMissing() throws java.rmi.RemoteException, VisADExceptionmark this FlatField as non-missing- Specified by:
clearMissingin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
convertToField
public Field convertToField() throws java.rmi.RemoteException, VisADException
convert this FlatField to a (non-Flat) FieldImpl- Specified by:
convertToFieldin interfaceFlatFieldIface- Throws:
java.rmi.RemoteExceptionVisADException
-
getRangeDimension
public int getRangeDimension() throws java.rmi.RemoteException, VisADExceptionGets the number of components in the "flat" range.- Specified by:
getRangeDimensionin interfaceFlatFieldIface- Returns:
- The number of components in the "flat" range.
- Throws:
java.rmi.RemoteExceptionVisADException
-
-
DMelt 3.0 © DataMelt by jWork.ORG