visad
Class SetType

java.lang.Object
  extended by visad.MathType
      extended by visad.SetType
All Implemented Interfaces:
Serializable

public class SetType
extends MathType

SetType is the VisAD data type for subsets of R^n for n>0.

See Also:
Serialized Form

Constructor Summary
SetType(MathType type)
          type must be a RealType or a RealTupleType
 
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
 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, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetType

public SetType(MathType type)
        throws VisADException
type must be a RealType or a RealTupleType

Throws:
VisADException
Method Detail

equals

public boolean equals(Object type)
Description copied from class: MathType
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

Specified by:
equals in class MathType

equalsExceptName

public boolean equalsExceptName(MathType type)
Description copied from class: MathType
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

Specified by:
equalsExceptName in class MathType

equalsExceptNameButUnits

public boolean equalsExceptNameButUnits(MathType type)
Specified by:
equalsExceptNameButUnits in class MathType

cloneDerivative

public MathType cloneDerivative(RealType d_partial)
                         throws VisADException
Specified by:
cloneDerivative in class MathType
Throws:
VisADException

binary

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

unary

public MathType unary(int op,
                      Vector names)
               throws VisADException
Specified by:
unary in class MathType
Throws:
VisADException

prettyString

public String prettyString(int indent)
Specified by:
prettyString in class MathType

missingData

public Data missingData()
                 throws VisADException
Description copied from class: MathType
returns a missing Data object for any MathType

Specified by:
missingData in class MathType
Throws:
VisADException

getDomain

public RealTupleType getDomain()
if the domain passed to constructor was a RealType, getDomain returns a RealTupleType with that RealType as its single component


buildShadowType

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