|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.MathType visad.FunctionType
public class FunctionType
FunctionType is the VisAD data type for functions.
A Function domain type may be either a RealType (for a function with domain = R) or a RealTupleType (for a function with domain = R^n for n > 0).
Field Summary | |
---|---|
static FunctionType |
REAL_1TO1_FUNCTION
|
static FunctionType |
REAL_1TO3_FUNCTION
|
static FunctionType |
REAL_1TO4_FUNCTION
|
Constructor Summary | |
---|---|
FunctionType(MathType domain,
MathType range)
domain must be a RealType or a RealTupleType; range may be any MathType |
Method Summary | |
---|---|
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)
|
RealTupleType |
getDomain()
if the domain passed to constructor was a RealType, getDomain returns a RealTupleType with that RealType as its single component |
boolean |
getFlat()
|
RealTupleType |
getFlatRange()
|
MathType |
getRange()
|
boolean |
getReal()
|
RealType[] |
getRealComponents()
|
TextType[] |
getTextComponents()
|
int[] |
getTextIndices()
|
int |
hashCode()
Returns the hash code of this instance. |
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 |
Field Detail |
---|
public static final FunctionType REAL_1TO1_FUNCTION
public static final FunctionType REAL_1TO3_FUNCTION
public static final FunctionType REAL_1TO4_FUNCTION
Constructor Detail |
---|
public FunctionType(MathType domain, MathType range) throws VisADException
VisADException
Method Detail |
---|
public TextType[] getTextComponents()
public int[] getTextIndices()
public RealTupleType getDomain()
public MathType getRange()
public boolean getFlat()
public boolean getReal()
public RealTupleType getFlatRange()
public RealType[] getRealComponents()
public boolean equals(Object type)
MathType
equals
in class MathType
public int hashCode()
equals(Object type)
,
then hashCode()
== type.hashCode()
.
hashCode
in class Object
public boolean equalsExceptName(MathType type)
MathType
equalsExceptName
in class MathType
public boolean equalsExceptNameButUnits(MathType type) throws VisADException
equalsExceptNameButUnits
in class MathType
VisADException
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 String prettyString(int indent)
prettyString
in class MathType
public Data missingData() throws VisADException, RemoteException
MathType
missingData
in class MathType
VisADException
RemoteException
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 |