visad
Class FunctionType
- java.lang.Object
-
- visad.MathType
-
- visad.FunctionType
-
- All Implemented Interfaces:
- java.io.Serializable
public class FunctionType extends MathType
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).
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static FunctionTypeREAL_1TO1_FUNCTIONstatic FunctionTypeREAL_1TO3_FUNCTIONstatic FunctionTypeREAL_1TO4_FUNCTION
-
Constructor Summary
Constructors Constructor and Description FunctionType(MathType domain, MathType range)domain must be a RealType or a RealTupleType; range may be any MathType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description MathTypebinary(MathType type, int op, java.util.Vector names)ShadowTypebuildShadowType(DataDisplayLink link, ShadowType parent)MathTypecloneDerivative(RealType d_partial)booleanequals(java.lang.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 equalbooleanequalsExceptName(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 equalbooleanequalsExceptNameButUnits(MathType type)RealTupleTypegetDomain()if the domain passed to constructor was a RealType, getDomain returns a RealTupleType with that RealType as its single componentbooleangetFlat()RealTupleTypegetFlatRange()MathTypegetRange()booleangetReal()RealType[]getRealComponents()TextType[]getTextComponents()int[]getTextIndices()inthashCode()Returns the hash code of this instance.DatamissingData()returns a missing Data object for any MathTypejava.lang.StringprettyString(int indent)MathTypeunary(int op, java.util.Vector names)-
Methods inherited from class visad.MathType
addTimeAlias, findScalarType, guessMaps, main, prettyString, stringToType, toString
-
-
-
-
Field Detail
-
REAL_1TO1_FUNCTION
public static final FunctionType REAL_1TO1_FUNCTION
-
REAL_1TO3_FUNCTION
public static final FunctionType REAL_1TO3_FUNCTION
-
REAL_1TO4_FUNCTION
public static final FunctionType REAL_1TO4_FUNCTION
-
-
Constructor Detail
-
FunctionType
public FunctionType(MathType domain, MathType range) throws VisADException
domain must be a RealType or a RealTupleType; range may be any MathType- Throws:
VisADException
-
-
Method Detail
-
getTextComponents
public TextType[] getTextComponents()
-
getTextIndices
public int[] getTextIndices()
-
getDomain
public RealTupleType getDomain()
if the domain passed to constructor was a RealType, getDomain returns a RealTupleType with that RealType as its single component
-
getRange
public MathType getRange()
-
getFlat
public boolean getFlat()
-
getReal
public boolean getReal()
-
getFlatRange
public RealTupleType getFlatRange()
-
getRealComponents
public RealType[] getRealComponents()
-
equals
public boolean equals(java.lang.Object type)
Description copied from class:MathTypeScalarTypes 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
-
hashCode
public int hashCode()
Returns the hash code of this instance. Ifequals(Object type), then.hashCode()== type.hashCode()- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code of this instance.
-
equalsExceptName
public boolean equalsExceptName(MathType type)
Description copied from class:MathTypethis 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- Specified by:
equalsExceptNamein classMathType
-
equalsExceptNameButUnits
public boolean equalsExceptNameButUnits(MathType type) throws VisADException
- Specified by:
equalsExceptNameButUnitsin classMathType- Throws:
VisADException
-
cloneDerivative
public MathType cloneDerivative(RealType d_partial) throws VisADException
- Specified by:
cloneDerivativein classMathType- Throws:
VisADException
-
binary
public MathType binary(MathType type, int op, java.util.Vector names) throws VisADException
- Specified by:
binaryin classMathType- Throws:
VisADException
-
unary
public MathType unary(int op, java.util.Vector names) throws VisADException
- Specified by:
unaryin classMathType- Throws:
VisADException
-
prettyString
public java.lang.String prettyString(int indent)
- Specified by:
prettyStringin classMathType
-
missingData
public Data missingData() throws VisADException, java.rmi.RemoteException
Description copied from class:MathTypereturns a missing Data object for any MathType- Specified by:
missingDatain classMathType- Throws:
VisADExceptionjava.rmi.RemoteException
-
buildShadowType
public ShadowType buildShadowType(DataDisplayLink link, ShadowType parent) throws VisADException, java.rmi.RemoteException
- Specified by:
buildShadowTypein classMathType- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG