|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.MathType visad.TupleType
public class TupleType
TupleType is the general VisAD data type for vectors.
Constructor Summary | |
---|---|
TupleType(MathType[] types)
array of component types |
Method Summary | |
---|---|
MathType |
__getitem__(int index)
A wrapper around getComponent for JPython. |
int |
__len__()
A wrapper around getComponents for JPython. |
MathType |
binary(MathType type,
int op,
Vector names)
|
ShadowType |
buildShadowType(DataDisplayLink link,
ShadowType parent)
|
MathType |
cloneDerivative(RealType d_partial)
|
boolean |
equals(Object type)
ScalarTypes are equal if they have the same name; TupleTypes are equal if their components are equal; FunctionTypes are equal if their domains and ranges are equal |
boolean |
equalsExceptName(MathType type)
this is useful for determining compatibility of Data objects for binary mathematical operations; any RealTypes are equal; any TextTypes are equal; TupleTypes are equal if their components are equal; FunctionTypes are equal if their domains and ranges are equal |
boolean |
equalsExceptNameButUnits(MathType type)
|
MathType |
getComponent(int i)
return component for i between 0 and getDimension() - 1 |
MathType[] |
getComponents()
get array of components |
int |
getDimension()
get number of components |
boolean |
getFlat()
Is this a "flat" tuple? |
int |
getIndex(MathType type)
return index of first component with type; if no such component, return -1 |
int |
getIndex(String name)
return index of first RealType component with name; if no such component, return -1 |
int |
getNumberOfRealComponents()
|
RealType[] |
getRealComponents()
|
int |
hashCode()
|
Data |
missingData()
returns a missing Data object for any MathType |
String |
prettyString(int indent)
|
MathType |
unary(int op,
Vector names)
|
Methods inherited from class visad.MathType |
---|
addTimeAlias, findScalarType, guessMaps, main, prettyString, stringToType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TupleType(MathType[] types) throws VisADException
VisADException
Method Detail |
---|
public int getDimension()
public MathType[] getComponents()
public RealType[] getRealComponents()
public int getNumberOfRealComponents()
public MathType __getitem__(int index) throws VisADException
getComponent
for JPython.
VisADException
public int __len__()
getComponents
for JPython.
public MathType getComponent(int i) throws VisADException
VisADException
public int getIndex(String name)
public int getIndex(MathType type)
public boolean equals(Object type)
MathType
equals
in class MathType
public int hashCode()
hashCode
in class Object
public boolean equalsExceptName(MathType type)
MathType
equalsExceptName
in class MathType
public boolean equalsExceptNameButUnits(MathType type)
equalsExceptNameButUnits
in class MathType
public MathType cloneDerivative(RealType d_partial) throws VisADException
cloneDerivative
in class MathType
VisADException
public MathType binary(MathType type, int op, Vector names) throws VisADException
binary
in class MathType
VisADException
public MathType unary(int op, Vector names) throws VisADException
unary
in class MathType
VisADException
public boolean getFlat()
public String prettyString(int indent)
prettyString
in class MathType
public Data missingData()
MathType
missingData
in class MathType
public ShadowType buildShadowType(DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
buildShadowType
in class MathType
VisADException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |