|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvisad.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
|
| 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)
|
|
| 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 div for JPython |
Data |
__div__(double data)
A wrapper around __div__ for JPython |
Data |
__mod__(Data data)
A wrapper around mod for JPython |
Data |
__mod__(double data)
A wrapper around __mod__ for JPython |
Data |
__mul__(Data data)
A wrapper around mul for JPython |
Data |
__mul__(double data)
A wrapper around __mul__ for JPython |
Data |
__neg__()
A wrapper around neg for JPython |
Data |
__pow__(Data data)
A wrapper around pow for JPython |
Data |
__pow__(double data)
A wrapper around __pow__ for JPython |
Data |
__sub__(Data data)
A wrapper around sub for JPython |
Data |
__sub__(double data)
A wrapper around __sub__ for JPython |
Data |
abs()
a list of unary operations using default modes for sampling and error estimation |
Data |
abs(int sampling_mode,
int error_mode)
a list of unary operations supporting non-default modes for sampling and error estimation |
Data |
acos()
|
Data |
acos(int sampling_mode,
int error_mode)
|
Data |
acosDegrees()
|
Data |
acosDegrees(int sampling_mode,
int error_mode)
|
Data |
add(Data data)
a list of binary operations using default modes for sampling and error estimation |
Data |
add(Data data,
int sampling_mode,
int error_mode)
a list of binary operations supporting non-default modes for sampling and error estimation |
Data |
adjustSamplingError(Data error,
int error_mode)
would like 'default' visibility here, but must be declared 'public' because it is defined in the Data interface |
Data |
asin()
|
Data |
asin(int sampling_mode,
int error_mode)
|
Data |
asinDegrees()
|
Data |
asinDegrees(int sampling_mode,
int error_mode)
|
Data |
atan()
|
Data |
atan(int sampling_mode,
int error_mode)
|
Data |
atan2(Data data)
|
Data |
atan2(Data data,
int sampling_mode,
int error_mode)
|
Data |
atan2Degrees(Data data)
|
Data |
atan2Degrees(Data data,
int sampling_mode,
int error_mode)
|
Data |
atanDegrees()
|
Data |
atanDegrees(int sampling_mode,
int error_mode)
|
Data |
binary(Data data,
int op,
int sampling_mode,
int error_mode)
binary operations |
Data |
binary(Data data,
int op,
MathType new_type,
int sampling_mode,
int error_mode)
general binary operation between this and data; op may be Data.ADD, Data.SUBTRACT, etc; these include all binary operations defined for Java primitive data types; new_type is the MathType of the result; sampling_mode may be Data.NEAREST_NEIGHBOR or Data.WEIGHTED_AVERAGE; error_mode may be Data.INDEPENDENT, Data.DEPENDENT or Data.NO_ERRORS |
Data |
ceil()
|
Data |
ceil(int sampling_mode,
int error_mode)
|
Data |
changeMathType(MathType new_type)
clone this Data object except give it new_type |
java.lang.Object |
clone()
Clones this instance. |
double[][] |
computeRanges(RealType[] reals)
return range of values of RealType real[i] in return[i][0], return[i][1] |
DataShadow |
computeRanges(ShadowType type,
int n)
compute the ranges of values of each RealType in 'this' that is mapped in the Display associated with type; this is the top-level definition of computeRanges - it works by recursively invoking the next definition of computeRanges; would like 'default' visibility here, but must be declared 'public' because it is defined in the Data interface; n = display.getScalarCount() |
Data |
cos()
|
Data |
cos(int sampling_mode,
int error_mode)
|
Data |
cosDegrees()
|
Data |
cosDegrees(int sampling_mode,
int error_mode)
|
java.lang.Object |
dataClone()
a VisAD adaptation of clone that works for local or remote Data; DataImpl.dataClone returns clone; RemoteDataImpl.dataClone returns clone inherited from UnicastRemoteObject |
Data |
divide(Data data)
|
Data |
divide(Data data,
int sampling_mode,
int error_mode)
|
Data |
exp()
|
Data |
exp(int sampling_mode,
int error_mode)
|
Data |
floor()
|
Data |
floor(int sampling_mode,
int error_mode)
|
MathType |
getType()
|
DataImpl |
local()
DataImpl.local() returns 'this' RemoteDataImpl.local() returns 'AdaptedData' |
Data |
log()
|
Data |
log(int sampling_mode,
int error_mode)
|
java.lang.String |
longString()
generates a longer string than generated by toString |
java.lang.String |
longString(java.lang.String pre)
generates a longer string than generated by toString, indented by pre (a string of blanks) |
static void |
main(java.lang.String[] args)
|
Data |
max(Data data)
|
Data |
max(Data data,
int sampling_mode,
int error_mode)
|
Data |
min(Data data)
|
Data |
min(Data data,
int sampling_mode,
int error_mode)
|
Data |
multiply(Data data)
|
Data |
multiply(Data data,
int sampling_mode,
int error_mode)
|
Data |
negate()
|
Data |
negate(int sampling_mode,
int error_mode)
|
void |
notifyReferences()
notify local DataReferenceImpl-s that this DataImpl has changed; incTick in RemoteDataImpl for RemoteDataReferenceImpl-s; would like 'default' visibility here, but must be declared 'public' because it is defined in the Data interface |
Data |
pow(Data data)
|
Data |
pow(Data data,
int sampling_mode,
int error_mode)
|
Data |
remainder(Data data)
|
Data |
remainder(Data data,
int sampling_mode,
int error_mode)
|
Data |
rint()
|
Data |
rint(int sampling_mode,
int error_mode)
|
Data |
round()
|
Data |
round(int sampling_mode,
int error_mode)
|
Data |
sin()
|
Data |
sin(int sampling_mode,
int error_mode)
|
Data |
sinDegrees()
|
Data |
sinDegrees(int sampling_mode,
int error_mode)
|
Data |
sqrt()
|
Data |
sqrt(int sampling_mode,
int error_mode)
|
Data |
subtract(Data data)
|
Data |
subtract(Data data,
int sampling_mode,
int error_mode)
|
Data |
tan()
|
Data |
tan(int sampling_mode,
int error_mode)
|
Data |
tanDegrees()
|
Data |
tanDegrees(int sampling_mode,
int error_mode)
|
java.lang.String |
toString()
|
Data |
unary(int op,
int sampling_mode,
int error_mode)
unary operations |
Data |
unary(int op,
MathType new_type,
int sampling_mode,
int error_mode)
general unary operation; operation may be Data.ABS, Data.ACOS, etc; these include all unary operations defined for Java primitive data types; new_type is the MathType of the result; sampling_mode may be Data.NEAREST_NEIGHBOR or Data.WEIGHTED_AVERAGE; error_mode may be Data.INDEPENDENT, Data.DEPENDENT or Data.NO_ERRORS |
| 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)
| Method Detail |
|---|
public DataImpl local()
local in interface Datapublic MathType getType()
getType in interface Data
public void notifyReferences()
throws VisADException,
java.rmi.RemoteException
notifyReferences in class ThingImplVisADException
java.rmi.RemoteException
public Data binary(Data data,
int op,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
binary in interface DataVisADException
java.rmi.RemoteException
public Data binary(Data data,
int op,
MathType new_type,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
Data
binary in interface DataVisADException
java.rmi.RemoteException
public Data add(Data data)
throws VisADException,
java.rmi.RemoteException
add in interface DataVisADException
java.rmi.RemoteException
public Data subtract(Data data)
throws VisADException,
java.rmi.RemoteException
subtract in interface DataVisADException
java.rmi.RemoteException
public Data multiply(Data data)
throws VisADException,
java.rmi.RemoteException
multiply in interface DataVisADException
java.rmi.RemoteException
public Data divide(Data data)
throws VisADException,
java.rmi.RemoteException
divide in interface DataVisADException
java.rmi.RemoteException
public Data pow(Data data)
throws VisADException,
java.rmi.RemoteException
pow in interface DataVisADException
java.rmi.RemoteException
public Data max(Data data)
throws VisADException,
java.rmi.RemoteException
max in interface DataVisADException
java.rmi.RemoteException
public Data min(Data data)
throws VisADException,
java.rmi.RemoteException
min in interface DataVisADException
java.rmi.RemoteException
public Data atan2(Data data)
throws VisADException,
java.rmi.RemoteException
atan2 in interface DataVisADException
java.rmi.RemoteException
public Data atan2Degrees(Data data)
throws VisADException,
java.rmi.RemoteException
atan2Degrees in interface DataVisADException
java.rmi.RemoteException
public Data remainder(Data data)
throws VisADException,
java.rmi.RemoteException
remainder in interface DataVisADException
java.rmi.RemoteException
public Data add(Data data,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
add in interface DataVisADException
java.rmi.RemoteException
public Data subtract(Data data,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
subtract in interface DataVisADException
java.rmi.RemoteException
public Data multiply(Data data,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
multiply in interface DataVisADException
java.rmi.RemoteException
public Data divide(Data data,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
divide in interface DataVisADException
java.rmi.RemoteException
public Data pow(Data data,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
pow in interface DataVisADException
java.rmi.RemoteException
public Data max(Data data,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
max in interface DataVisADException
java.rmi.RemoteException
public Data min(Data data,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
min in interface DataVisADException
java.rmi.RemoteException
public Data atan2(Data data,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
atan2 in interface DataVisADException
java.rmi.RemoteException
public Data atan2Degrees(Data data,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
atan2Degrees in interface DataVisADException
java.rmi.RemoteException
public Data remainder(Data data,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
remainder in interface DataVisADException
java.rmi.RemoteException
public Data unary(int op,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
unary in interface DataVisADException
java.rmi.RemoteException
public Data unary(int op,
MathType new_type,
int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
Data
unary in interface DataVisADException
java.rmi.RemoteException
public Data changeMathType(MathType new_type)
throws VisADException,
java.rmi.RemoteException
Data
changeMathType in interface DataVisADException
java.rmi.RemoteException
public Data abs()
throws VisADException,
java.rmi.RemoteException
abs in interface DataVisADException
java.rmi.RemoteException
public Data acos()
throws VisADException,
java.rmi.RemoteException
acos in interface DataVisADException
java.rmi.RemoteException
public Data acosDegrees()
throws VisADException,
java.rmi.RemoteException
acosDegrees in interface DataVisADException
java.rmi.RemoteException
public Data asin()
throws VisADException,
java.rmi.RemoteException
asin in interface DataVisADException
java.rmi.RemoteException
public Data asinDegrees()
throws VisADException,
java.rmi.RemoteException
asinDegrees in interface DataVisADException
java.rmi.RemoteException
public Data atan()
throws VisADException,
java.rmi.RemoteException
atan in interface DataVisADException
java.rmi.RemoteException
public Data atanDegrees()
throws VisADException,
java.rmi.RemoteException
atanDegrees in interface DataVisADException
java.rmi.RemoteException
public Data ceil()
throws VisADException,
java.rmi.RemoteException
ceil in interface DataVisADException
java.rmi.RemoteException
public Data cos()
throws VisADException,
java.rmi.RemoteException
cos in interface DataVisADException
java.rmi.RemoteException
public Data cosDegrees()
throws VisADException,
java.rmi.RemoteException
cosDegrees in interface DataVisADException
java.rmi.RemoteException
public Data exp()
throws VisADException,
java.rmi.RemoteException
exp in interface DataVisADException
java.rmi.RemoteException
public Data floor()
throws VisADException,
java.rmi.RemoteException
floor in interface DataVisADException
java.rmi.RemoteException
public Data log()
throws VisADException,
java.rmi.RemoteException
log in interface DataVisADException
java.rmi.RemoteException
public Data rint()
throws VisADException,
java.rmi.RemoteException
rint in interface DataVisADException
java.rmi.RemoteException
public Data round()
throws VisADException,
java.rmi.RemoteException
round in interface DataVisADException
java.rmi.RemoteException
public Data sin()
throws VisADException,
java.rmi.RemoteException
sin in interface DataVisADException
java.rmi.RemoteException
public Data sinDegrees()
throws VisADException,
java.rmi.RemoteException
sinDegrees in interface DataVisADException
java.rmi.RemoteException
public Data sqrt()
throws VisADException,
java.rmi.RemoteException
sqrt in interface DataVisADException
java.rmi.RemoteException
public Data tan()
throws VisADException,
java.rmi.RemoteException
tan in interface DataVisADException
java.rmi.RemoteException
public Data tanDegrees()
throws VisADException,
java.rmi.RemoteException
tanDegrees in interface DataVisADException
java.rmi.RemoteException
public Data negate()
throws VisADException,
java.rmi.RemoteException
negate in interface DataVisADException
java.rmi.RemoteException
public Data abs(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
abs in interface DataVisADException
java.rmi.RemoteException
public Data acos(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
acos in interface DataVisADException
java.rmi.RemoteException
public Data acosDegrees(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
acosDegrees in interface DataVisADException
java.rmi.RemoteException
public Data asin(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
asin in interface DataVisADException
java.rmi.RemoteException
public Data asinDegrees(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
asinDegrees in interface DataVisADException
java.rmi.RemoteException
public Data atan(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
atan in interface DataVisADException
java.rmi.RemoteException
public Data atanDegrees(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
atanDegrees in interface DataVisADException
java.rmi.RemoteException
public Data ceil(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
ceil in interface DataVisADException
java.rmi.RemoteException
public Data cos(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
cos in interface DataVisADException
java.rmi.RemoteException
public Data cosDegrees(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
cosDegrees in interface DataVisADException
java.rmi.RemoteException
public Data exp(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
exp in interface DataVisADException
java.rmi.RemoteException
public Data floor(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
floor in interface DataVisADException
java.rmi.RemoteException
public Data log(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
log in interface DataVisADException
java.rmi.RemoteException
public Data rint(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
rint in interface DataVisADException
java.rmi.RemoteException
public Data round(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
round in interface DataVisADException
java.rmi.RemoteException
public Data sin(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
sin in interface DataVisADException
java.rmi.RemoteException
public Data sinDegrees(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
sinDegrees in interface DataVisADException
java.rmi.RemoteException
public Data sqrt(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
sqrt in interface DataVisADException
java.rmi.RemoteException
public Data tan(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
tan in interface DataVisADException
java.rmi.RemoteException
public Data tanDegrees(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
tanDegrees in interface DataVisADException
java.rmi.RemoteException
public Data negate(int sampling_mode,
int error_mode)
throws VisADException,
java.rmi.RemoteException
negate in interface DataVisADException
java.rmi.RemoteException
public double[][] computeRanges(RealType[] reals)
throws VisADException,
java.rmi.RemoteException
Data
computeRanges in interface DataVisADException
java.rmi.RemoteException
public DataShadow computeRanges(ShadowType type,
int n)
throws VisADException,
java.rmi.RemoteException
computeRanges in interface DataVisADException
java.rmi.RemoteException
public Data adjustSamplingError(Data error,
int error_mode)
throws VisADException,
java.rmi.RemoteException
adjustSamplingError in interface DataVisADException
java.rmi.RemoteException
public Data __add__(Data data)
throws VisADException,
java.rmi.RemoteException
add for JPython
VisADException
java.rmi.RemoteException
public Data __sub__(Data data)
throws VisADException,
java.rmi.RemoteException
sub for JPython
VisADException
java.rmi.RemoteException
public Data __mul__(Data data)
throws VisADException,
java.rmi.RemoteException
mul for JPython
VisADException
java.rmi.RemoteException
public Data __div__(Data data)
throws VisADException,
java.rmi.RemoteException
div for JPython
VisADException
java.rmi.RemoteException
public Data __pow__(Data data)
throws VisADException,
java.rmi.RemoteException
pow for JPython
VisADException
java.rmi.RemoteException
public Data __mod__(Data data)
throws VisADException,
java.rmi.RemoteException
mod for JPython
VisADException
java.rmi.RemoteException
public Data __neg__()
throws VisADException,
java.rmi.RemoteException
neg for JPython
VisADException
java.rmi.RemoteException
public Data __add__(double data)
throws VisADException,
java.rmi.RemoteException
__add__ for JPython
VisADException
java.rmi.RemoteException
public Data __sub__(double data)
throws VisADException,
java.rmi.RemoteException
__sub__ for JPython
VisADException
java.rmi.RemoteException
public Data __mul__(double data)
throws VisADException,
java.rmi.RemoteException
__mul__ for JPython
VisADException
java.rmi.RemoteException
public Data __div__(double data)
throws VisADException,
java.rmi.RemoteException
__div__ for JPython
VisADException
java.rmi.RemoteException
public Data __pow__(double data)
throws VisADException,
java.rmi.RemoteException
__pow__ for JPython
VisADException
java.rmi.RemoteException
public Data __mod__(double data)
throws VisADException,
java.rmi.RemoteException
__mod__ for JPython
VisADException
java.rmi.RemoteExceptionpublic java.lang.Object dataClone()
dataClone in interface Data
public java.lang.Object clone()
throws java.lang.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 ThingImpljava.lang.CloneNotSupportedException - if cloning isn't supported.public java.lang.String toString()
toString in class java.lang.Object
public java.lang.String longString()
throws VisADException,
java.rmi.RemoteException
longString in interface DataVisADException
java.rmi.RemoteException
public java.lang.String longString(java.lang.String pre)
throws VisADException,
java.rmi.RemoteException
longString in interface DataVisADException
java.rmi.RemoteException
public static void main(java.lang.String[] args)
throws VisADException,
java.rmi.RemoteException
VisADException
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||