visad.cluster
Class RemoteClientTupleImpl
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- visad.RemoteThingImpl
-
- visad.RemoteDataImpl
-
- visad.cluster.RemoteClusterDataImpl
-
- visad.cluster.RemoteClientDataImpl
-
- visad.cluster.RemoteClientTupleImpl
-
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, RemoteClientData, RemoteClientTuple, RemoteClusterData, Data, RemoteData, RemoteThing, RemoteTupleIface, Thing, TupleIface
public class RemoteClientTupleImpl extends RemoteClientDataImpl implements RemoteClientTuple
RemoteClientTupleImpl is the class for cluster client VisAD Tuple data objects.- 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 RemoteClientTupleImpl(Data[] datums)must call setupClusterData after constructor to finish the "construction"
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DataadjustSamplingError(Data error, int error_mode)return a clone of this, except with ErrorEstimates combined with values in error, according to error_modedouble[][]computeRanges(RealType[] reals)compute ranges of values in this of given RealTypes, using a dummy DisplayImplJ2DDataShadowcomputeRanges(ShadowType type, DataShadow shadow)Recursive version of computeRanges(), called down through Data object tree.DataShadowcomputeRanges(ShadowType type, int n)Compute ranges of values for each of 'n' RealTypes in DisplayImpl.RealTypeVector.DatagetComponent(int i)return component for i between 0 and getDimension() - 1intgetDimension()return number of componentsReal[]getRealComponents()MathTypegetType()booleanisMissing()java.lang.StringlongString()java.lang.StringlongString(java.lang.String pre)-
Methods inherited from class visad.cluster.RemoteClientDataImpl
binary, binary, unary, unary
-
Methods inherited from class visad.cluster.RemoteClusterDataImpl
addReference, clusterDataEquals, getClusterData, getPartitionSet, local, main, notifyReferences, removeReference, setParent, setupClusterData
-
Methods inherited from class visad.RemoteDataImpl
abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, 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
-
Methods inherited from class visad.RemoteThingImpl
getTick, incTick
-
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.cluster.RemoteClusterData
clusterDataEquals, getClusterData, setupClusterData
-
Methods inherited from interface visad.Data
abs, 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, unary
-
Methods inherited from interface visad.RemoteThing
getTick, incTick
-
Methods inherited from interface visad.Thing
addReference, removeReference
-
Methods inherited from interface visad.TupleIface
binary, unary
-
-
-
-
Constructor Detail
-
RemoteClientTupleImpl
public RemoteClientTupleImpl(Data[] datums) throws VisADException, java.rmi.RemoteException
must call setupClusterData after constructor to finish the "construction"- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
Method Detail
-
getType
public MathType getType() throws VisADException, java.rmi.RemoteException
- Specified by:
getTypein interfaceData- Overrides:
getTypein classRemoteDataImpl- Returns:
- MathType of this Data
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
getRealComponents
public Real[] getRealComponents() throws VisADException, java.rmi.RemoteException
- Specified by:
getRealComponentsin interfaceTupleIface- Throws:
VisADExceptionjava.rmi.RemoteException
-
getDimension
public int getDimension() throws java.rmi.RemoteExceptionDescription copied from interface:TupleIfacereturn number of components- Specified by:
getDimensionin interfaceTupleIface- Throws:
java.rmi.RemoteException
-
getComponent
public Data getComponent(int i) throws VisADException, java.rmi.RemoteException
Description copied from interface:TupleIfacereturn component for i between 0 and getDimension() - 1- Specified by:
getComponentin interfaceTupleIface- Throws:
VisADExceptionjava.rmi.RemoteException
-
isMissing
public boolean isMissing() throws java.rmi.RemoteException- Specified by:
isMissingin interfaceData- Specified by:
isMissingin interfaceTupleIface- Overrides:
isMissingin classRemoteDataImpl- Returns:
- flag indicating whether this Data has a missing value
- Throws:
java.rmi.RemoteException- an RMI error occurred
-
computeRanges
public DataShadow computeRanges(ShadowType type, DataShadow shadow) throws VisADException, java.rmi.RemoteException
Description copied from class:RemoteDataImplRecursive version of computeRanges(), called down through Data object tree.- Specified by:
computeRangesin interfaceData- Specified by:
computeRangesin interfaceTupleIface- Overrides:
computeRangesin classRemoteDataImpl- Parameters:
type- 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 value- Returns:
- DataShadow instance containing double[][] array of RealType ranges, and an animation sampling Set
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
computeRanges
public DataShadow computeRanges(ShadowType type, int n) throws VisADException, java.rmi.RemoteException
Description copied from class:RemoteDataImplCompute ranges of values for each of 'n' RealTypes in DisplayImpl.RealTypeVector. Called from DataRenderer with n = DisplayImpl.getScalarCount().- Specified by:
computeRangesin interfaceData- Overrides:
computeRangesin classRemoteDataImpl- Parameters:
type- ShadowType generated for MathType of thisn- number of RealTypes in DisplayImpl.RealTypeVector- Returns:
- DataShadow instance containing double[][] array of RealType ranges, and an animation sampling Set
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
computeRanges
public double[][] computeRanges(RealType[] reals) throws VisADException, java.rmi.RemoteException
Description copied from class:RemoteDataImplcompute ranges of values in this of given RealTypes, using a dummy DisplayImplJ2D- Specified by:
computeRangesin interfaceData- Overrides:
computeRangesin classRemoteDataImpl- Parameters:
reals- array of RealTypes whose value ranges to compute- Returns:
- double[reals.length][2] giving the low and high value in this for each RealType in reals
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
adjustSamplingError
public Data adjustSamplingError(Data error, int error_mode) throws VisADException, java.rmi.RemoteException
Description copied from class:RemoteDataImplreturn a clone of this, except with ErrorEstimates combined with values in error, according to error_mode- Specified by:
adjustSamplingErrorin interfaceData- Specified by:
adjustSamplingErrorin interfaceTupleIface- Overrides:
adjustSamplingErrorin classRemoteDataImplerror_mode- may be Data.INDEPENDENT, Data.DEPENDENT or Data.NO_ERRORS;- Returns:
- clone of this, except with ErrorEstimates set according to values in error
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
longString
public java.lang.String longString() throws VisADException, java.rmi.RemoteException- Specified by:
longStringin interfaceData- Overrides:
longStringin classRemoteDataImpl- Returns:
- a longer String than returned by toString()
- Throws:
VisADExceptionjava.rmi.RemoteException
-
longString
public java.lang.String longString(java.lang.String pre) throws VisADException, java.rmi.RemoteException- Specified by:
longStringin interfaceData- Specified by:
longStringin interfaceTupleIface- Overrides:
longStringin classRemoteDataImpl- Parameters:
pre- String added to start of each line- Returns:
- a longer String than returned by toString(), indented by pre (a string of blanks)
- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG