Class PointObTuple

java.lang.Object
visad.ThingImpl
visad.DataImpl
visad.Tuple
ucar.unidata.data.point.PointObTuple
All Implemented Interfaces:
Serializable, Cloneable, PointOb, Data, Thing, TupleIface

public class PointObTuple extends Tuple implements PointOb
Implementation of PointOb as a Tuple. This is immutable.
Author:
IDV Development Team
See Also:
  • Constructor Details

    • PointObTuple

      public PointObTuple(EarthLocation location, DateTime dateTime, Data data) throws VisADException, RemoteException
      Construct a new PointObTuple from the given location, date/time and data.
      Parameters:
      location - location of the observation
      dateTime - date/time of the observation
      data - associated data.
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • PointObTuple

      public PointObTuple(EarthLocation location, DateTime dateTime, Data data, TupleType tupleType) throws VisADException, RemoteException
      Construct a new PointObTuple from the given location, date/time and data.
      Parameters:
      location - location of the observation
      dateTime - date/time of the observation
      data - associated data.
      tupleType - The tuple type to use
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
    • PointObTuple

      public PointObTuple(EarthLocation location, DateTime dateTime, Data data, TupleType tupleType, boolean checkType) throws VisADException, RemoteException
      Construct a new PointObTuple from the given location, date/time and data.
      Parameters:
      location - location of the observation
      dateTime - date/time of the observation
      data - associated data.
      tupleType - The tuple type to use
      checkType - If true then check that the tuple type matches the type of the data
      Throws:
      RemoteException - Java RMI error
      VisADException - VisAD Error
  • Method Details

    • getComponent

      public Data getComponent(int i) throws VisADException, RemoteException
      Get the i'th component
      Specified by:
      getComponent in interface TupleIface
      Overrides:
      getComponent in class Tuple
      Parameters:
      i - component index
      Returns:
      The component
      Throws:
      RemoteException - On badness
      VisADException - On badness
    • isMissing

      public boolean isMissing()
      Is this missing?
      Specified by:
      isMissing in interface Data
      Specified by:
      isMissing in interface TupleIface
      Overrides:
      isMissing in class Tuple
      Returns:
      true if location, time and obs are missing
    • getComponents

      public Data[] getComponents(boolean copy)
      Create, if needed, and return the component array.
      Overrides:
      getComponents in class Tuple
      Parameters:
      copy - true to copy
      Returns:
      components
    • getEarthLocation

      public EarthLocation getEarthLocation()
      Get the geolocated location of the observation.
      Specified by:
      getEarthLocation in interface PointOb
      Returns:
      observation's geolocation
    • getDateTime

      public DateTime getDateTime()
      Get the time associated with this observation.
      Specified by:
      getDateTime in interface PointOb
      Returns:
      DateTime for this observation.
    • getData

      public Data getData()
      Get the data associated with this object.
      Specified by:
      getData in interface PointOb
      Returns:
      Data for this observation.
    • equals

      public boolean equals(Object o)
      Check to see if this is equal to o
      Overrides:
      equals in class Tuple
      Parameters:
      o - object in question
      Returns:
      true if they are equal.
    • hashCode

      public int hashCode()
      Returns the hash code of this object.
      Overrides:
      hashCode in class Tuple
      Returns:
      The hash code of this object.
    • clone

      public final Object clone()
      Clones this instance.
      Overrides:
      clone in class Tuple
      Returns:
      A clone of this instance.
    • toString

      public String toString()
      String representation of the point observation.
      Overrides:
      toString in class DataImpl
      Returns:
      this ob as a string.