public class TupleType extends MathType
| Constructor and Description |
|---|
TupleType(MathType[] types)
array of component types
|
| Modifier and Type | Method and Description |
|---|---|
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) |
addTimeAlias, findScalarType, guessMaps, main, prettyString, stringToType, toStringpublic TupleType(MathType[] types) throws VisADException
VisADExceptionpublic int getDimension()
public MathType[] getComponents()
public RealType[] getRealComponents()
public int getNumberOfRealComponents()
public MathType __getitem__(int index) throws VisADException
getComponent for JPython.VisADExceptionpublic int __len__()
getComponents for JPython.public MathType getComponent(int i) throws VisADException
VisADExceptionpublic int getIndex(String name)
public int getIndex(MathType type)
public boolean equals(Object type)
MathTypepublic boolean equalsExceptName(MathType type)
MathTypeequalsExceptName in class MathTypepublic boolean equalsExceptNameButUnits(MathType type)
equalsExceptNameButUnits in class MathTypepublic MathType cloneDerivative(RealType d_partial) throws VisADException
cloneDerivative in class MathTypeVisADExceptionpublic MathType binary(MathType type, int op, Vector names) throws VisADException
binary in class MathTypeVisADExceptionpublic MathType unary(int op, Vector names) throws VisADException
unary in class MathTypeVisADExceptionpublic boolean getFlat()
public String prettyString(int indent)
prettyString in class MathTypepublic Data missingData()
MathTypemissingData in class MathTypepublic ShadowType buildShadowType(DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
buildShadowType in class MathTypeVisADExceptionRemoteExceptionCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.