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, toString
public TupleType(MathType[] types) throws VisADException
VisADException
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
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
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.