visad
Class DataImpl

java.lang.Object
  extended by visad.ThingImpl
      extended by visad.DataImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Data, Thing
Direct Known Subclasses:
FunctionImpl, Scalar, Set, Tuple, UserDummyDataImpl

public abstract class DataImpl
extends ThingImpl
implements Data

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.

See Also:
Serialized Form

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

DataImpl

public DataImpl(MathType type)
Method Detail

local

public DataImpl local()
DataImpl.local() returns 'this' RemoteDataImpl.local() returns 'AdaptedData'

Specified by:
local in interface Data

getType

public MathType getType()
Specified by:
getType in interface Data

notifyReferences

public void notifyReferences()
                      throws VisADException,
                             java.rmi.RemoteException
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

Overrides:
notifyReferences in class ThingImpl
Throws:
VisADException
java.rmi.RemoteException

binary

public Data binary(Data data,
                   int op,
                   int sampling_mode,
                   int error_mode)
            throws VisADException,
                   java.rmi.RemoteException
binary operations

Specified by:
binary in interface Data
Throws:
VisADException
java.rmi.RemoteException

binary

public Data binary(Data data,
                   int op,
                   MathType new_type,
                   int sampling_mode,
                   int error_mode)
            throws VisADException,
                   java.rmi.RemoteException
Description copied from interface: Data
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

Specified by:
binary in interface Data
Throws:
VisADException
java.rmi.RemoteException

add

public Data add(Data data)
         throws VisADException,
                java.rmi.RemoteException
a list of binary operations using default modes for sampling and error estimation

Specified by:
add in interface Data
Throws:
VisADException
java.rmi.RemoteException

subtract

public Data subtract(Data data)
              throws VisADException,
                     java.rmi.RemoteException
Specified by:
subtract in interface Data
Throws:
VisADException
java.rmi.RemoteException

multiply

public Data multiply(Data data)
              throws VisADException,
                     java.rmi.RemoteException
Specified by:
multiply in interface Data
Throws:
VisADException
java.rmi.RemoteException

divide

public Data divide(Data data)
            throws VisADException,
                   java.rmi.RemoteException
Specified by:
divide in interface Data
Throws:
VisADException
java.rmi.RemoteException

pow

public Data pow(Data data)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
pow in interface Data
Throws:
VisADException
java.rmi.RemoteException

max

public Data max(Data data)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
max in interface Data
Throws:
VisADException
java.rmi.RemoteException

min

public Data min(Data data)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
min in interface Data
Throws:
VisADException
java.rmi.RemoteException

atan2

public Data atan2(Data data)
           throws VisADException,
                  java.rmi.RemoteException
Specified by:
atan2 in interface Data
Throws:
VisADException
java.rmi.RemoteException

atan2Degrees

public Data atan2Degrees(Data data)
                  throws VisADException,
                         java.rmi.RemoteException
Specified by:
atan2Degrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

remainder

public Data remainder(Data data)
               throws VisADException,
                      java.rmi.RemoteException
Specified by:
remainder in interface Data
Throws:
VisADException
java.rmi.RemoteException

add

public Data add(Data data,
                int sampling_mode,
                int error_mode)
         throws VisADException,
                java.rmi.RemoteException
a list of binary operations supporting non-default modes for sampling and error estimation

Specified by:
add in interface Data
Throws:
VisADException
java.rmi.RemoteException

subtract

public Data subtract(Data data,
                     int sampling_mode,
                     int error_mode)
              throws VisADException,
                     java.rmi.RemoteException
Specified by:
subtract in interface Data
Throws:
VisADException
java.rmi.RemoteException

multiply

public Data multiply(Data data,
                     int sampling_mode,
                     int error_mode)
              throws VisADException,
                     java.rmi.RemoteException
Specified by:
multiply in interface Data
Throws:
VisADException
java.rmi.RemoteException

divide

public Data divide(Data data,
                   int sampling_mode,
                   int error_mode)
            throws VisADException,
                   java.rmi.RemoteException
Specified by:
divide in interface Data
Throws:
VisADException
java.rmi.RemoteException

pow

public Data pow(Data data,
                int sampling_mode,
                int error_mode)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
pow in interface Data
Throws:
VisADException
java.rmi.RemoteException

max

public Data max(Data data,
                int sampling_mode,
                int error_mode)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
max in interface Data
Throws:
VisADException
java.rmi.RemoteException

min

public Data min(Data data,
                int sampling_mode,
                int error_mode)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
min in interface Data
Throws:
VisADException
java.rmi.RemoteException

atan2

public Data atan2(Data data,
                  int sampling_mode,
                  int error_mode)
           throws VisADException,
                  java.rmi.RemoteException
Specified by:
atan2 in interface Data
Throws:
VisADException
java.rmi.RemoteException

atan2Degrees

public Data atan2Degrees(Data data,
                         int sampling_mode,
                         int error_mode)
                  throws VisADException,
                         java.rmi.RemoteException
Specified by:
atan2Degrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

remainder

public Data remainder(Data data,
                      int sampling_mode,
                      int error_mode)
               throws VisADException,
                      java.rmi.RemoteException
Specified by:
remainder in interface Data
Throws:
VisADException
java.rmi.RemoteException

unary

public Data unary(int op,
                  int sampling_mode,
                  int error_mode)
           throws VisADException,
                  java.rmi.RemoteException
unary operations

Specified by:
unary in interface Data
Throws:
VisADException
java.rmi.RemoteException

unary

public Data unary(int op,
                  MathType new_type,
                  int sampling_mode,
                  int error_mode)
           throws VisADException,
                  java.rmi.RemoteException
Description copied from interface: Data
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

Specified by:
unary in interface Data
Throws:
VisADException
java.rmi.RemoteException

changeMathType

public Data changeMathType(MathType new_type)
                    throws VisADException,
                           java.rmi.RemoteException
Description copied from interface: Data
clone this Data object except give it new_type

Specified by:
changeMathType in interface Data
Throws:
VisADException
java.rmi.RemoteException

abs

public Data abs()
         throws VisADException,
                java.rmi.RemoteException
a list of unary operations using default modes for sampling and error estimation

Specified by:
abs in interface Data
Throws:
VisADException
java.rmi.RemoteException

acos

public Data acos()
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
acos in interface Data
Throws:
VisADException
java.rmi.RemoteException

acosDegrees

public Data acosDegrees()
                 throws VisADException,
                        java.rmi.RemoteException
Specified by:
acosDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

asin

public Data asin()
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
asin in interface Data
Throws:
VisADException
java.rmi.RemoteException

asinDegrees

public Data asinDegrees()
                 throws VisADException,
                        java.rmi.RemoteException
Specified by:
asinDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

atan

public Data atan()
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
atan in interface Data
Throws:
VisADException
java.rmi.RemoteException

atanDegrees

public Data atanDegrees()
                 throws VisADException,
                        java.rmi.RemoteException
Specified by:
atanDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

ceil

public Data ceil()
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
ceil in interface Data
Throws:
VisADException
java.rmi.RemoteException

cos

public Data cos()
         throws VisADException,
                java.rmi.RemoteException
Specified by:
cos in interface Data
Throws:
VisADException
java.rmi.RemoteException

cosDegrees

public Data cosDegrees()
                throws VisADException,
                       java.rmi.RemoteException
Specified by:
cosDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

exp

public Data exp()
         throws VisADException,
                java.rmi.RemoteException
Specified by:
exp in interface Data
Throws:
VisADException
java.rmi.RemoteException

floor

public Data floor()
           throws VisADException,
                  java.rmi.RemoteException
Specified by:
floor in interface Data
Throws:
VisADException
java.rmi.RemoteException

log

public Data log()
         throws VisADException,
                java.rmi.RemoteException
Specified by:
log in interface Data
Throws:
VisADException
java.rmi.RemoteException

rint

public Data rint()
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
rint in interface Data
Throws:
VisADException
java.rmi.RemoteException

round

public Data round()
           throws VisADException,
                  java.rmi.RemoteException
Specified by:
round in interface Data
Throws:
VisADException
java.rmi.RemoteException

sin

public Data sin()
         throws VisADException,
                java.rmi.RemoteException
Specified by:
sin in interface Data
Throws:
VisADException
java.rmi.RemoteException

sinDegrees

public Data sinDegrees()
                throws VisADException,
                       java.rmi.RemoteException
Specified by:
sinDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

sqrt

public Data sqrt()
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
sqrt in interface Data
Throws:
VisADException
java.rmi.RemoteException

tan

public Data tan()
         throws VisADException,
                java.rmi.RemoteException
Specified by:
tan in interface Data
Throws:
VisADException
java.rmi.RemoteException

tanDegrees

public Data tanDegrees()
                throws VisADException,
                       java.rmi.RemoteException
Specified by:
tanDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

negate

public Data negate()
            throws VisADException,
                   java.rmi.RemoteException
Specified by:
negate in interface Data
Throws:
VisADException
java.rmi.RemoteException

abs

public Data abs(int sampling_mode,
                int error_mode)
         throws VisADException,
                java.rmi.RemoteException
a list of unary operations supporting non-default modes for sampling and error estimation

Specified by:
abs in interface Data
Throws:
VisADException
java.rmi.RemoteException

acos

public Data acos(int sampling_mode,
                 int error_mode)
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
acos in interface Data
Throws:
VisADException
java.rmi.RemoteException

acosDegrees

public Data acosDegrees(int sampling_mode,
                        int error_mode)
                 throws VisADException,
                        java.rmi.RemoteException
Specified by:
acosDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

asin

public Data asin(int sampling_mode,
                 int error_mode)
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
asin in interface Data
Throws:
VisADException
java.rmi.RemoteException

asinDegrees

public Data asinDegrees(int sampling_mode,
                        int error_mode)
                 throws VisADException,
                        java.rmi.RemoteException
Specified by:
asinDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

atan

public Data atan(int sampling_mode,
                 int error_mode)
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
atan in interface Data
Throws:
VisADException
java.rmi.RemoteException

atanDegrees

public Data atanDegrees(int sampling_mode,
                        int error_mode)
                 throws VisADException,
                        java.rmi.RemoteException
Specified by:
atanDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

ceil

public Data ceil(int sampling_mode,
                 int error_mode)
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
ceil in interface Data
Throws:
VisADException
java.rmi.RemoteException

cos

public Data cos(int sampling_mode,
                int error_mode)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
cos in interface Data
Throws:
VisADException
java.rmi.RemoteException

cosDegrees

public Data cosDegrees(int sampling_mode,
                       int error_mode)
                throws VisADException,
                       java.rmi.RemoteException
Specified by:
cosDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

exp

public Data exp(int sampling_mode,
                int error_mode)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
exp in interface Data
Throws:
VisADException
java.rmi.RemoteException

floor

public Data floor(int sampling_mode,
                  int error_mode)
           throws VisADException,
                  java.rmi.RemoteException
Specified by:
floor in interface Data
Throws:
VisADException
java.rmi.RemoteException

log

public Data log(int sampling_mode,
                int error_mode)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
log in interface Data
Throws:
VisADException
java.rmi.RemoteException

rint

public Data rint(int sampling_mode,
                 int error_mode)
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
rint in interface Data
Throws:
VisADException
java.rmi.RemoteException

round

public Data round(int sampling_mode,
                  int error_mode)
           throws VisADException,
                  java.rmi.RemoteException
Specified by:
round in interface Data
Throws:
VisADException
java.rmi.RemoteException

sin

public Data sin(int sampling_mode,
                int error_mode)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
sin in interface Data
Throws:
VisADException
java.rmi.RemoteException

sinDegrees

public Data sinDegrees(int sampling_mode,
                       int error_mode)
                throws VisADException,
                       java.rmi.RemoteException
Specified by:
sinDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

sqrt

public Data sqrt(int sampling_mode,
                 int error_mode)
          throws VisADException,
                 java.rmi.RemoteException
Specified by:
sqrt in interface Data
Throws:
VisADException
java.rmi.RemoteException

tan

public Data tan(int sampling_mode,
                int error_mode)
         throws VisADException,
                java.rmi.RemoteException
Specified by:
tan in interface Data
Throws:
VisADException
java.rmi.RemoteException

tanDegrees

public Data tanDegrees(int sampling_mode,
                       int error_mode)
                throws VisADException,
                       java.rmi.RemoteException
Specified by:
tanDegrees in interface Data
Throws:
VisADException
java.rmi.RemoteException

negate

public Data negate(int sampling_mode,
                   int error_mode)
            throws VisADException,
                   java.rmi.RemoteException
Specified by:
negate in interface Data
Throws:
VisADException
java.rmi.RemoteException

computeRanges

public double[][] computeRanges(RealType[] reals)
                         throws VisADException,
                                java.rmi.RemoteException
Description copied from interface: Data
return range of values of RealType real[i] in return[i][0], return[i][1]

Specified by:
computeRanges in interface Data
Throws:
VisADException
java.rmi.RemoteException

computeRanges

public DataShadow computeRanges(ShadowType type,
                                int n)
                         throws VisADException,
                                java.rmi.RemoteException
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()

Specified by:
computeRanges in interface Data
Throws:
VisADException
java.rmi.RemoteException

adjustSamplingError

public Data adjustSamplingError(Data error,
                                int error_mode)
                         throws VisADException,
                                java.rmi.RemoteException
would like 'default' visibility here, but must be declared 'public' because it is defined in the Data interface

Specified by:
adjustSamplingError in interface Data
Throws:
VisADException
java.rmi.RemoteException

__add__

public Data __add__(Data data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around add for JPython

Throws:
VisADException
java.rmi.RemoteException

__sub__

public Data __sub__(Data data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around sub for JPython

Throws:
VisADException
java.rmi.RemoteException

__mul__

public Data __mul__(Data data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around mul for JPython

Throws:
VisADException
java.rmi.RemoteException

__div__

public Data __div__(Data data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around div for JPython

Throws:
VisADException
java.rmi.RemoteException

__pow__

public Data __pow__(Data data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around pow for JPython

Throws:
VisADException
java.rmi.RemoteException

__mod__

public Data __mod__(Data data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around mod for JPython

Throws:
VisADException
java.rmi.RemoteException

__neg__

public Data __neg__()
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around neg for JPython

Throws:
VisADException
java.rmi.RemoteException

__add__

public Data __add__(double data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around __add__ for JPython

Throws:
VisADException
java.rmi.RemoteException

__sub__

public Data __sub__(double data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around __sub__ for JPython

Throws:
VisADException
java.rmi.RemoteException

__mul__

public Data __mul__(double data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around __mul__ for JPython

Throws:
VisADException
java.rmi.RemoteException

__div__

public Data __div__(double data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around __div__ for JPython

Throws:
VisADException
java.rmi.RemoteException

__pow__

public Data __pow__(double data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around __pow__ for JPython

Throws:
VisADException
java.rmi.RemoteException

__mod__

public Data __mod__(double data)
             throws VisADException,
                    java.rmi.RemoteException
A wrapper around __mod__ for JPython

Throws:
VisADException
java.rmi.RemoteException

dataClone

public 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

Specified by:
dataClone in interface Data

clone

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.

Overrides:
clone in class ThingImpl
Returns:
A clone of this instance.
Throws:
java.lang.CloneNotSupportedException - if cloning isn't supported.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

longString

public java.lang.String longString()
                            throws VisADException,
                                   java.rmi.RemoteException
generates a longer string than generated by toString

Specified by:
longString in interface Data
Throws:
VisADException
java.rmi.RemoteException

longString

public java.lang.String longString(java.lang.String pre)
                            throws VisADException,
                                   java.rmi.RemoteException
generates a longer string than generated by toString, indented by pre (a string of blanks)

Specified by:
longString in interface Data
Throws:
VisADException
java.rmi.RemoteException

main

public static void main(java.lang.String[] args)
                 throws VisADException,
                        java.rmi.RemoteException
Throws:
VisADException
java.rmi.RemoteException