|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvisad.ThingImpl
visad.DataImpl
visad.Tuple
visad.RealTuple
public class RealTuple
RealTuple is the VisAD data class for vectors in R^n for n>0. RealTuple objects are immutable.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class visad.DataImpl |
|---|
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 | |
|---|---|
RealTuple(Real[] reals)
construct a RealTuple according to an array of Real objects |
|
RealTuple(RealTupleType type)
construct a RealTuple object with the missing value |
|
RealTuple(RealTupleType type,
double[] values)
construct a RealTuple according to a RealTupleType and a double array |
|
RealTuple(RealTupleType type,
Real[] reals,
CoordinateSystem coord_sys)
construct a RealTuple according to an array of Real objects; coordinate_system may be null; otherwise coordinate_system.getReference() must equal type.getCoordinateSystem.getReference() |
|
| Method Summary | |
|---|---|
void |
addReference(ThingReference listener)
Adds a listener for changes to this instance. |
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 |
java.lang.Object |
clone()
Clones this instance. |
DataShadow |
computeRanges(ShadowType type,
DataShadow shadow)
recursive version of computeRanges; would like 'default' visibility here, but must be declared 'public' because it is defined in the Data interface |
CoordinateSystem |
getCoordinateSystem()
get CoordinateSystem |
ErrorEstimate[] |
getErrors()
get ErrorEstimates of Real components |
Unit[] |
getTupleUnits()
get Units of Real components |
double[] |
getValues()
Get the values of the Real components |
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)
run 'java visad.RealTuple' to test the RealTuple class |
void |
removeReference(ThingReference listener)
Removes a listener for changes to this instance. |
java.lang.String |
toString()
Provide a String representation of this RealTuple. |
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.Tuple |
|---|
__getitem__, __len__, adjustSamplingError, buildTupleType, equals, getComponent, getComponents, getDimension, getLength, getRealComponents, hashCode, isMissing, makeTuple |
| Methods inherited from class visad.DataImpl |
|---|
__add__, __add__, __div__, __div__, __mod__, __mod__, __mul__, __mul__, __neg__, __pow__, __pow__, __sub__, __sub__, abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, longString, max, max, min, min, multiply, multiply, negate, negate, notifyReferences, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface visad.TupleIface |
|---|
adjustSamplingError, getComponent, getDimension, getRealComponents, isMissing |
| Methods inherited from interface visad.Data |
|---|
abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, longString, max, max, min, min, multiply, multiply, negate, negate, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary |
| Constructor Detail |
|---|
public RealTuple(RealTupleType type)
public RealTuple(RealTupleType type,
Real[] reals,
CoordinateSystem coord_sys)
throws VisADException,
java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public RealTuple(Real[] reals)
throws VisADException,
java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public RealTuple(RealTupleType type,
double[] values)
throws VisADException,
java.rmi.RemoteException
VisADException
java.rmi.RemoteException| Method Detail |
|---|
public final void addReference(ThingReference listener)
addReference in interface ThingaddReference in class ThingImpllistener - The listener for changes.public final void removeReference(ThingReference listener)
removeReference in interface ThingremoveReference in class ThingImpllistener - The change listener to be removed.public double[] getValues()
getValues in interface RealTupleIfacepublic Unit[] getTupleUnits()
getTupleUnits in interface RealTupleIface
public ErrorEstimate[] getErrors()
throws VisADException,
java.rmi.RemoteException
getErrors in interface RealTupleIfaceVisADException - VisAD failure.
java.rmi.RemoteException - Java RMI failure.public CoordinateSystem getCoordinateSystem()
getCoordinateSystem in interface RealTupleIfacenull.
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 Databinary in interface TupleIfacebinary in class TupleVisADException
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 Dataunary in interface TupleIfaceunary in class TupleVisADException
java.rmi.RemoteException
public DataShadow computeRanges(ShadowType type,
DataShadow shadow)
throws VisADException,
java.rmi.RemoteException
Data
computeRanges in interface DatacomputeRanges in interface TupleIfacecomputeRanges in class TupleVisADException
java.rmi.RemoteExceptionpublic final java.lang.Object clone()
clone in interface RealTupleIfaceclone in class Tuplepublic java.lang.String toString()
toString in interface RealTupleIfacetoString in class DataImpl
public java.lang.String longString(java.lang.String pre)
throws VisADException,
java.rmi.RemoteException
DataImpl
longString in interface DatalongString in interface TupleIfacelongString in class TupleVisADException
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 | ||||||||