|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.ThingImpl visad.DataImpl
public abstract class DataImpl
DataImpl is the superclass for VisAD's data hierarchy, inheriting the Data interface. Data objects are immutable except for the range values of Field objects.
VisAD Data objects are finite approximations to math objects that include scalars, tuples (i.e., n-dimensional vectors), functions, and certain forms of sets. Hence, all Data objects possess a MathType, which identifies the corresponding concept and is not a synonym for the Data class, even though the class names for a Data object and its corresponding MathType object (Set and SetType, e.g.) may be similar. In order to approximate their corresponding mathematical entities, Data objects may use text strings or finite representations of real numbers. Also, any Data object may take the value 'missing', and any sub-object of a Data object may take the value 'missing'.
All of the Java arithmetical operations are defined for Data objects, to the extent that they make sense for the types involved.
Nested Class Summary | |
---|---|
class |
DataImpl.Syncher
class used to synchronize with TRANSFORM_DONE events from dummy DisplayImplJ2D used by computeRanges() |
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 | |
---|---|
DataImpl(MathType type)
construct a DataImpl with given MathType |
Method Summary | |
---|---|
Data |
__add__(Data data)
A wrapper around add for JPython |
Data |
__add__(double data)
A wrapper around __add__ for JPython |
Data |
__div__(Data data)
A wrapper around divide for JPython |
Data |
__div__(double data)
A wrapper around __div__ for JPython |
Data |
__mod__(Data data)
A wrapper around remainder for JPython |
Data |
__mod__(double data)
A wrapper around __mod__ for JPython |
Data |
__mul__(Data data)
A wrapper around multiply for JPython |
Data |
__mul__(double data)
A wrapper around __mul__ for JPython |
Data |
__neg__()
A wrapper around negate for JPython |
Data |
__pow__(Data data)
A wrapper around pow for JPython |
Data |
__pow__(double data)
A wrapper around __pow__ for JPython
For low powers, do the multiply directly to preserve units. |
Data |
__radd__(double data)
A wrapper around __add__ for JPython |
Data |
__rdiv__(double data)
A wrapper around __div__ for JPython |
Data |
__rmod__(double data)
A wrapper around __mod__ for JPython |
Data |
__rmul__(double data)
A wrapper around __mul__ for JPython |
Data |
__rpow__(double data)
A wrapper around __pow__ for JPython |
Data |
__rsub__(double data)
A wrapper around __sub__ for JPython |
Data |
__sub__(Data data)
A wrapper around subtract for JPython |
Data |
__sub__(double data)
A wrapper around __sub__ for JPython |
Data |
abs()
call unary() to take the absolute value of this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
abs(int sampling_mode,
int error_mode)
call unary() to take the absolute value of this |
Data |
acos()
call unary() to take the arccos of this producing radian Units, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
acos(int sampling_mode,
int error_mode)
call unary() to take the arccos of this producing radian Units |
Data |
acosDegrees()
call unary() to take the arccos of this producing degree Units, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
acosDegrees(int sampling_mode,
int error_mode)
call unary() to take the arccos of this producing degree Units |
Data |
add(Data data)
call binary() to add data to this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
add(Data data,
int sampling_mode,
int error_mode)
call binary() to add data to this |
Data |
adjustSamplingError(Data error,
int error_mode)
return a clone of this, except with ErrorEstimates combined with values in error, according to error_mode |
Data |
asin()
call unary() to take the arcsin of this producing radian Units, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
asin(int sampling_mode,
int error_mode)
call unary() to take the arcsin of this producing radian Units |
Data |
asinDegrees()
call unary() to take the arcsin of this producing degree Units, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
asinDegrees(int sampling_mode,
int error_mode)
call unary() to take the arcsin of this producing degree Units |
Data |
atan()
call unary() to take the arctan of this producing radian Units, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
atan(int sampling_mode,
int error_mode)
call unary() to take the arctan of this producing radian Units |
Data |
atan2(Data data)
call binary() to take the atan of this by data producing radian Units, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
atan2(Data data,
int sampling_mode,
int error_mode)
call binary() to take the atan of this by data producing radian Units |
Data |
atan2Degrees(Data data)
call binary() to take the atan of this by data producing degree Units, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
atan2Degrees(Data data,
int sampling_mode,
int error_mode)
call binary() to take the atan of this by data producing degree Units |
Data |
atanDegrees()
call unary() to take the arctan of this producing degree Units, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
atanDegrees(int sampling_mode,
int error_mode)
call unary() to take the arctan of this producing degree Units |
Data |
binary(Data data,
int op,
int sampling_mode,
int error_mode)
Pointwise binary operation between this and data. |
Data |
binary(Data data,
int op,
MathType new_type,
int sampling_mode,
int error_mode)
Pointwise binary operation between this and data. |
Data |
ceil()
call unary() to take the ceiling of this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
ceil(int sampling_mode,
int error_mode)
call unary() to take the ceiling of this |
Data |
changeMathType(MathType new_type)
call unary() to clone this except with a new MathType |
Object |
clone()
Clones this instance. |
double[][] |
computeRanges(RealType[] reals)
compute ranges of values in this of given RealTypes, using a dummy DisplayImplJ2D |
DataShadow |
computeRanges(ShadowType type,
int n)
Compute ranges of values for each of 'n' RealTypes in DisplayImpl.RealTypeVector. |
Data |
cos()
call unary() to take the cos of this assuming radian Units unless this actual Units are degrees, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
cos(int sampling_mode,
int error_mode)
call unary() to take the cos of this assuming radian Units unless this actual Units are degrees |
Data |
cosDegrees()
call unary() to take the cos of this assuming degree Units unless this actual Units are radians, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
cosDegrees(int sampling_mode,
int error_mode)
call unary() to take the cos of this assuming degree Units unless this actual Units are radians |
Object |
dataClone()
A VisAD adaptation of clone that works for local or remote Data. |
Data |
divide(Data data)
call binary() to divide this by data, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
divide(Data data,
int sampling_mode,
int error_mode)
call binary() to divide this by data |
Data |
exp()
call unary() to take the exponent of this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
exp(int sampling_mode,
int error_mode)
call unary() to take the exponent of this |
Data |
floor()
call unary() to take the floor of this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
floor(int sampling_mode,
int error_mode)
call unary() to take the floor of this |
MathType |
getType()
|
DataImpl |
local()
|
Data |
log()
call unary() to take the log of this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
log(int sampling_mode,
int error_mode)
call unary() to take the log of this |
String |
longString()
|
String |
longString(String pre)
|
static void |
main(String[] args)
Simple DataImpl test, invoked as 'java visad.DataImpl'. |
Data |
max(Data data)
call binary() to take the max of this and data, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
max(Data data,
int sampling_mode,
int error_mode)
call binary() to take the max of this and data |
Data |
min(Data data)
call binary() to take the min of this and data, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
min(Data data,
int sampling_mode,
int error_mode)
call binary() to take the min of this and data |
Data |
multiply(Data data)
call binary() to multiply this by data, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
multiply(Data data,
int sampling_mode,
int error_mode)
call binary() to multiply this by data |
Data |
negate()
call unary() to negate this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
negate(int sampling_mode,
int error_mode)
call unary() to negate this |
void |
notifyReferences()
notify local DataReferenceImpl-s that this DataImpl has changed; incTick in RemoteDataImpl for RemoteDataReferenceImpl-s; declared public because it is defined in the Data interface |
Data |
pow(Data data)
call binary() to raise this to data power, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
pow(Data data,
int sampling_mode,
int error_mode)
call binary() to raise this to data power |
Data |
remainder(Data data)
call binary() to take the remainder of this divided by data, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
remainder(Data data,
int sampling_mode,
int error_mode)
call binary() to take the remainder of this divided by data |
Data |
rint()
call unary() to take the rint (essentially round) of this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
rint(int sampling_mode,
int error_mode)
call unary() to take the rint (essentially round) of this |
Data |
round()
call unary() to take the round of this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
round(int sampling_mode,
int error_mode)
call unary() to take the round of this |
Data |
sin()
call unary() to take the sin of this assuming radian Units unless this actual Units are degrees, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
sin(int sampling_mode,
int error_mode)
call unary() to take the sin of this assuming radian Units unless this actual Units are degrees |
Data |
sinDegrees()
call unary() to take the sin of this assuming degree Units unless this actual Units are radians, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
sinDegrees(int sampling_mode,
int error_mode)
call unary() to take the sin of this assuming degree Units unless this actual Units are radians |
Data |
sqrt()
call unary() to take the square root of this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
sqrt(int sampling_mode,
int error_mode)
call unary() to take the square root of this |
Data |
subtract(Data data)
call binary() to subtract data from this, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
subtract(Data data,
int sampling_mode,
int error_mode)
call binary() to subtract data from this |
Data |
tan()
call unary() to take the tan of this assuming radian Units unless this actual Units are degrees, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
tan(int sampling_mode,
int error_mode)
call unary() to take the tan of this assuming radian Units unless this actual Units are degrees |
Data |
tanDegrees()
call unary() to take the tan of this assuming degree Units unless this actual Units are radians, using default modes for sampling (Data.NEAREST_NEIGHBOR) and error estimation (Data.NO_ERRORS) |
Data |
tanDegrees(int sampling_mode,
int error_mode)
call unary() to take the tan of this assuming degree Units unless this actual Units are radians |
String |
toString()
|
Data |
unary(int op,
int sampling_mode,
int error_mode)
Pointwise unary operation applied to this. |
Data |
unary(int op,
MathType new_type,
int sampling_mode,
int error_mode)
Pointwise unary operation applied to this. |
Methods inherited from class visad.ThingImpl |
---|
addReference, removeReference |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface visad.Data |
---|
computeRanges, isMissing |
Methods inherited from interface visad.Thing |
---|
addReference, removeReference |
Constructor Detail |
---|
public DataImpl(MathType type)
type
- MathTypeMethod Detail |
---|
public DataImpl local()
local
in interface Data
public MathType getType()
getType
in interface Data
public void notifyReferences() throws VisADException, RemoteException
notifyReferences
in class ThingImpl
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data binary(Data data, int op, int sampling_mode, int error_mode) throws VisADException, RemoteException
binary
in interface Data
data
- other Data operand for binary operationop
- may be Data.ADD, Data.SUBTRACT, etc; these include all
binary operations defined for Java primitive data typessampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data binary(Data data, int op, MathType new_type, int sampling_mode, int error_mode) throws VisADException, RemoteException
binary
in interface Data
data
- other Data operand for binary operationop
- may be Data.ADD, Data.SUBTRACT, etc; these include all
binary operations defined for Java primitive data typesnew_type
- MathType of the resultsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data add(Data data) throws VisADException, RemoteException
add
in interface Data
data
- other Data operand for binary operation
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data subtract(Data data) throws VisADException, RemoteException
subtract
in interface Data
data
- other Data operand for binary operation
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data multiply(Data data) throws VisADException, RemoteException
multiply
in interface Data
data
- other Data operand for binary operation
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data divide(Data data) throws VisADException, RemoteException
divide
in interface Data
data
- other Data operand for binary operation
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data pow(Data data) throws VisADException, RemoteException
pow
in interface Data
data
- other Data operand for binary operation
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data max(Data data) throws VisADException, RemoteException
max
in interface Data
data
- other Data operand for binary operation
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data min(Data data) throws VisADException, RemoteException
min
in interface Data
data
- other Data operand for binary operation
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data atan2(Data data) throws VisADException, RemoteException
atan2
in interface Data
data
- other Data operand for binary operation
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data atan2Degrees(Data data) throws VisADException, RemoteException
atan2Degrees
in interface Data
data
- other Data operand for binary operation
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data remainder(Data data) throws VisADException, RemoteException
remainder
in interface Data
data
- other Data operand for binary operation
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data add(Data data, int sampling_mode, int error_mode) throws VisADException, RemoteException
add
in interface Data
data
- other Data operand for binary operationsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data subtract(Data data, int sampling_mode, int error_mode) throws VisADException, RemoteException
subtract
in interface Data
data
- other Data operand for binary operationsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data multiply(Data data, int sampling_mode, int error_mode) throws VisADException, RemoteException
multiply
in interface Data
data
- other Data operand for binary operationsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data divide(Data data, int sampling_mode, int error_mode) throws VisADException, RemoteException
divide
in interface Data
data
- other Data operand for binary operationsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data pow(Data data, int sampling_mode, int error_mode) throws VisADException, RemoteException
pow
in interface Data
data
- other Data operand for binary operationsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data max(Data data, int sampling_mode, int error_mode) throws VisADException, RemoteException
max
in interface Data
data
- other Data operand for binary operationsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data min(Data data, int sampling_mode, int error_mode) throws VisADException, RemoteException
min
in interface Data
data
- other Data operand for binary operationsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data atan2(Data data, int sampling_mode, int error_mode) throws VisADException, RemoteException
atan2
in interface Data
data
- other Data operand for binary operationsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data atan2Degrees(Data data, int sampling_mode, int error_mode) throws VisADException, RemoteException
atan2Degrees
in interface Data
data
- other Data operand for binary operationsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data remainder(Data data, int sampling_mode, int error_mode) throws VisADException, RemoteException
remainder
in interface Data
data
- other Data operand for binary operationsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data unary(int op, int sampling_mode, int error_mode) throws VisADException, RemoteException
unary
in interface Data
op
- may be Data.ABS, Data.ACOS, etc; these include all
unary operations defined for Java primitive data typessampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data unary(int op, MathType new_type, int sampling_mode, int error_mode) throws VisADException, RemoteException
unary
in interface Data
op
- may be Data.ABS, Data.ACOS, etc; these include all
unary operations defined for Java primitive data typesnew_type
- MathType of the resultsampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data changeMathType(MathType new_type) throws VisADException, RemoteException
changeMathType
in interface Data
new_type
- MathType of returned Data object
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data abs() throws VisADException, RemoteException
abs
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data acos() throws VisADException, RemoteException
acos
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data acosDegrees() throws VisADException, RemoteException
acosDegrees
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data asin() throws VisADException, RemoteException
asin
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data asinDegrees() throws VisADException, RemoteException
asinDegrees
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data atan() throws VisADException, RemoteException
atan
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data atanDegrees() throws VisADException, RemoteException
atanDegrees
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data ceil() throws VisADException, RemoteException
ceil
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data cos() throws VisADException, RemoteException
cos
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data cosDegrees() throws VisADException, RemoteException
cosDegrees
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data exp() throws VisADException, RemoteException
exp
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data floor() throws VisADException, RemoteException
floor
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data log() throws VisADException, RemoteException
log
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data rint() throws VisADException, RemoteException
rint
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data round() throws VisADException, RemoteException
round
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data sin() throws VisADException, RemoteException
sin
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data sinDegrees() throws VisADException, RemoteException
sinDegrees
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data sqrt() throws VisADException, RemoteException
sqrt
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data tan() throws VisADException, RemoteException
tan
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data tanDegrees() throws VisADException, RemoteException
tanDegrees
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data negate() throws VisADException, RemoteException
negate
in interface Data
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data abs(int sampling_mode, int error_mode) throws VisADException, RemoteException
abs
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data acos(int sampling_mode, int error_mode) throws VisADException, RemoteException
acos
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data acosDegrees(int sampling_mode, int error_mode) throws VisADException, RemoteException
acosDegrees
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data asin(int sampling_mode, int error_mode) throws VisADException, RemoteException
asin
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data asinDegrees(int sampling_mode, int error_mode) throws VisADException, RemoteException
asinDegrees
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data atan(int sampling_mode, int error_mode) throws VisADException, RemoteException
atan
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data atanDegrees(int sampling_mode, int error_mode) throws VisADException, RemoteException
atanDegrees
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data ceil(int sampling_mode, int error_mode) throws VisADException, RemoteException
ceil
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data cos(int sampling_mode, int error_mode) throws VisADException, RemoteException
cos
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data cosDegrees(int sampling_mode, int error_mode) throws VisADException, RemoteException
cosDegrees
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data exp(int sampling_mode, int error_mode) throws VisADException, RemoteException
exp
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data floor(int sampling_mode, int error_mode) throws VisADException, RemoteException
floor
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data log(int sampling_mode, int error_mode) throws VisADException, RemoteException
log
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data rint(int sampling_mode, int error_mode) throws VisADException, RemoteException
rint
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data round(int sampling_mode, int error_mode) throws VisADException, RemoteException
round
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data sin(int sampling_mode, int error_mode) throws VisADException, RemoteException
sin
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data sinDegrees(int sampling_mode, int error_mode) throws VisADException, RemoteException
sinDegrees
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data sqrt(int sampling_mode, int error_mode) throws VisADException, RemoteException
sqrt
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data tan(int sampling_mode, int error_mode) throws VisADException, RemoteException
tan
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data tanDegrees(int sampling_mode, int error_mode) throws VisADException, RemoteException
tanDegrees
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data negate(int sampling_mode, int error_mode) throws VisADException, RemoteException
negate
in interface Data
sampling_mode
- may be Data.NEAREST_NEIGHBOR or
Data.WEIGHTED_AVERAGEerror_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic double[][] computeRanges(RealType[] reals) throws VisADException, RemoteException
computeRanges
in interface Data
reals
- array of RealTypes whose value ranges to compute
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic DataShadow computeRanges(ShadowType type, int n) throws VisADException, RemoteException
computeRanges
in interface Data
type
- ShadowType generated for MathType of thisn
- number of RealTypes in DisplayImpl.RealTypeVector
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data adjustSamplingError(Data error, int error_mode) throws VisADException, RemoteException
adjustSamplingError
in interface Data
error
- error_mode
- may be Data.INDEPENDENT, Data.DEPENDENT or
Data.NO_ERRORS;
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic Data __add__(Data data) throws VisADException, RemoteException
add
for JPython
VisADException
RemoteException
public Data __sub__(Data data) throws VisADException, RemoteException
subtract
for JPython
VisADException
RemoteException
public Data __mul__(Data data) throws VisADException, RemoteException
multiply
for JPython
VisADException
RemoteException
public Data __div__(Data data) throws VisADException, RemoteException
divide
for JPython
VisADException
RemoteException
public Data __pow__(Data data) throws VisADException, RemoteException
pow
for JPython
VisADException
RemoteException
public Data __mod__(Data data) throws VisADException, RemoteException
remainder
for JPython
VisADException
RemoteException
public Data __neg__() throws VisADException, RemoteException
negate
for JPython
VisADException
RemoteException
public Data __add__(double data) throws VisADException, RemoteException
__add__
for JPython
VisADException
RemoteException
public Data __radd__(double data) throws VisADException, RemoteException
__add__
for JPython
VisADException
RemoteException
public Data __sub__(double data) throws VisADException, RemoteException
__sub__
for JPython
VisADException
RemoteException
public Data __rsub__(double data) throws VisADException, RemoteException
__sub__
for JPython
VisADException
RemoteException
public Data __mul__(double data) throws VisADException, RemoteException
__mul__
for JPython
VisADException
RemoteException
public Data __rmul__(double data) throws VisADException, RemoteException
__mul__
for JPython
VisADException
RemoteException
public Data __div__(double data) throws VisADException, RemoteException
__div__
for JPython
VisADException
RemoteException
public Data __rdiv__(double data) throws VisADException, RemoteException
__div__
for JPython
VisADException
RemoteException
public Data __pow__(double data) throws VisADException, RemoteException
__pow__
for JPython
For low powers, do the multiply directly to preserve units.
VisADException
RemoteException
public Data __rpow__(double data) throws VisADException, RemoteException
__pow__
for JPython
VisADException
RemoteException
public Data __mod__(double data) throws VisADException, RemoteException
__mod__
for JPython
VisADException
RemoteException
public Data __rmod__(double data) throws VisADException, RemoteException
__mod__
for JPython
VisADException
RemoteException
public Object dataClone()
dataClone
in interface Data
public Object clone() throws CloneNotSupportedException
Clones this instance. Information on the parent object of this instance
is not cloned, so -- following the general contract of the clone()
method -- subclasses should not test for equality of the parent
object in any equals(Object)
method.
This implementation never throws CloneNotSupportedException
.
clone
in class ThingImpl
CloneNotSupportedException
- if cloning isn't supported.public String toString()
toString
in class Object
public String longString() throws VisADException, RemoteException
longString
in interface Data
VisADException
RemoteException
public String longString(String pre) throws VisADException, RemoteException
longString
in interface Data
pre
- String added to start of each line
VisADException
RemoteException
public static void main(String[] args) throws VisADException, RemoteException
args
- array of command line arguments (not used)
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |