|
||||||||||
| 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.DoubleStringTuple
This provides a LoCal Tuple that can hold numeric and string values without taking the hit that having slots and lots of Real and Text objects around.
| Nested Class Summary |
| Nested classes inherited from class visad.DataImpl |
DataImpl.Syncher |
| Nested classes inherited from class visad.ThingImpl |
ThingImpl.RemotePair |
| Field Summary | |
(package private) Data[] |
components
Holds the components as we create them |
(package private) double[] |
doubles
The numeric values |
(package private) int |
size
my size |
(package private) String[] |
strings
The string values |
(package private) TupleType |
tt
The tuple type |
(package private) Unit[] |
units
The units for the numeric values |
| Fields inherited from class visad.Tuple |
tupleComponents |
| Fields inherited from class visad.DataImpl |
Type |
| 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 | |
DoubleStringTuple(TupleType type,
double[] doubles,
String[] strings,
Unit[] units)
Construct a DoubleStringTuple |
|
| Method Summary | |
boolean |
equals(Object obj)
Indicates if this Tuple is identical to an object. |
Data |
getComponent(int i)
Get the i'th component. |
Data[] |
getComponents()
Create, if needed, and return the component array. |
int |
hashCode()
Returns the hash code of this object. |
static void |
main(String[] args)
run 'java visad.DoubleStringTuple' to test the RealTuple class |
static TupleType |
makeTupleType(List numericTypes,
List stringTypes)
Make a tuple type from lists of scalar types |
| Methods inherited from class visad.Tuple |
__getitem__, __len__, adjustSamplingError, binary, buildTupleType, checkTupleType, clone, computeRanges, getDimension, getLength, getRealComponents, isMissing, longString, makeTuple, unary |
| Methods inherited from class visad.DataImpl |
__add__, __add__, __div__, __div__, __mod__, __mod__, __mul__, __mul__, __neg__, __pow__, __pow__, __radd__, __rdiv__, __rmod__, __rmul__, __rpow__, __rsub__, __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, computeReferenceRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, invertOp, local, log, log, longString, max, max, min, min, multiply, multiply, negate, negate, notifyReferences, pow, pow, remainder, remainder, rint, rint, round, round, setParent, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, toString, unary |
| Methods inherited from class visad.ThingImpl |
adaptedAddReference, adaptedRemoveReference, addReference, removeReference |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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 |
| Methods inherited from interface visad.Thing |
addReference, removeReference |
| Field Detail |
String[] strings
double[] doubles
TupleType tt
Unit[] units
Data[] components
int size
| Constructor Detail |
public DoubleStringTuple(TupleType type,
double[] doubles,
String[] strings,
Unit[] units)
type - The typeunits - The units for the realsdoubles - The realsstrings - The strings| Method Detail |
public static TupleType makeTupleType(List numericTypes,
List stringTypes)
throws VisADException,
RemoteException
numericTypes - List of RealTypesstringTypes - List of TextTypes
RemoteException - Java RMI problem
VisADException - unable to create TupleType
public Data getComponent(int i)
throws VisADException,
RemoteException
getComponent in interface TupleIfacegetComponent in class Tuplei - Which one
RemoteException - Java RMI problem
VisADException - unable to create TupleTypepublic Data[] getComponents()
getComponents in class Tuplepublic boolean equals(Object obj)
equals in class Tupleobj - The object.
true if and only if the object is
a Tuple and both Tuple-s have identical component
sequences.public int hashCode()
hashCode in class Tuple
public static void main(String[] args)
throws VisADException,
RemoteException
args - ignored
RemoteException - Java RMI problem
VisADException - Unable to create the VisAD objects
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||