visad
Class FunctionType

java.lang.Object
  |
  +--visad.MathType
        |
        +--visad.FunctionType

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
static FunctionType REAL_1TO1_FUNCTION
           
static FunctionType REAL_1TO3_FUNCTION
           
static FunctionType REAL_1TO4_FUNCTION
           
 
Fields inherited from class visad.MathType
SystemIntrinsic
 
Constructor Summary
  FunctionType(MathType domain, MathType range)
          domain must be a RealType or a RealTupleType; range may be any MathType
(package private) FunctionType(MathType domain, MathType range, boolean b)
          trusted constructor for initializers
 
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)
           
 boolean equalsExceptName(MathType type)
           
 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()
           
 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

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

FunctionType

FunctionType(MathType domain,
             MathType range,
             boolean b)
trusted constructor for initializers
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(Object type)
Overrides:
equals in class MathType

hashCode

public int hashCode()
Returns the hash code of this instance. If equals(Object type), then hashCode() == type.hashCode().
Returns:
The hash code of this instance.
Overrides:
hashCode in class Object

equalsExceptName

public boolean equalsExceptName(MathType type)
Overrides:
equalsExceptName in class MathType

equalsExceptNameButUnits

public boolean equalsExceptNameButUnits(MathType type)
                                 throws VisADException
Overrides:
equalsExceptNameButUnits in class MathType

cloneDerivative

public MathType cloneDerivative(RealType d_partial)
                         throws VisADException
Overrides:
cloneDerivative in class MathType

binary

public MathType binary(MathType type,
                       int op,
                       Vector names)
                throws VisADException
Overrides:
binary in class MathType

unary

public MathType unary(int op,
                      Vector names)
               throws VisADException
Overrides:
unary in class MathType

prettyString

public String prettyString(int indent)
Overrides:
prettyString in class MathType

missingData

public Data missingData()
                 throws VisADException,
                        RemoteException
Overrides:
missingData in class MathType

buildShadowType

public ShadowType buildShadowType(DataDisplayLink link,
                                  ShadowType parent)
                           throws VisADException,
                                  RemoteException
Overrides:
buildShadowType in class MathType