Documentation of 'visad.TupleType' Java class
TupleType
visad

Class TupleType

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    RealTupleType


    public class TupleType
    extends MathType
    TupleType is the general VisAD data type for vectors.

    See Also:
    Serialized Form
    • Method Detail

      • getDimension

        public int getDimension()
        get number of components
      • getComponents

        public MathType[] getComponents()
        get array of components
      • getRealComponents

        public RealType[] getRealComponents()
      • getNumberOfRealComponents

        public int getNumberOfRealComponents()
      • __len__

        public int __len__()
        A wrapper around getComponents for JPython.
        Returns:
        The number of components of this TupleType
      • getIndex

        public int getIndex(java.lang.String name)
        return index of first RealType component with name; if no such component, return -1
      • getIndex

        public int getIndex(MathType type)
        return index of first component with type; if no such component, return -1
      • equals

        public boolean equals(java.lang.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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • 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
      • getFlat

        public boolean getFlat()
        Is this a "flat" tuple?
        Returns:
        true if all components are RealType or RealTupleType.
      • prettyString

        public java.lang.String prettyString(int indent)
        Specified by:
        prettyString in class MathType
      • missingData

        public Data missingData()
        Description copied from class: MathType
        returns a missing Data object for any MathType
        Specified by:
        missingData in class MathType

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.