Documentation of 'visad.georef.NamedLocationTuple' Java class
NamedLocationTuple
visad.georef

Class NamedLocationTuple

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Data, EarthLocation, LatLonPoint, NamedLocation, Thing, TupleIface


    public class NamedLocationTuple
    extends Tuple
    implements NamedLocation

    Tuple implementation of NamedLocation for representing a location on the earth's surface in terms of latitude, longitude and altitude above sea level and some sort of identifier. In this implementation, the Tuple has two components - the identifier and an EarthLocationTuple.

    Instances of this class are immutable.

    See Also:
    Serialized Form
    • Field Detail

      • IDENTIFIER_TYPE

        public static TextType IDENTIFIER_TYPE
        TextType associated with the identifier that is returned by getIdentifier().
    • Constructor Detail

      • NamedLocationTuple

        public NamedLocationTuple()
                           throws VisADException,
                                  java.rmi.RemoteException
        Throws:
        VisADException
        java.rmi.RemoteException
      • NamedLocationTuple

        public NamedLocationTuple(Text id,
                                  Real lat,
                                  Real lon,
                                  Real alt)
                           throws VisADException,
                                  java.rmi.RemoteException
        Construct an NamedLocationTuple from a Text and Reals of Latitude, Longitude, and Altitude.
        Parameters:
        id - Text representing the identifier (must be of type NamedLocation.IDENTIFIER_TYPE)
        lat - Real representing the latitude
        lon - Real representing the longitude
        alt - Real representing the altitude
        Throws:
        VisADException - unable to create necessary VisAD object
        java.rmi.RemoteException - unable to create necessary remote object
      • NamedLocationTuple

        public NamedLocationTuple(Text identifier,
                                  EarthLocation location)
                           throws VisADException,
                                  java.rmi.RemoteException
        Construct an NamedLocationTuple from a Text and an EarthLocation
        Parameters:
        identifier - Text representing the identifier (must be of type NamedLocation.IDENTIFIER_TYPE)
        location - EarthLocation
        Throws:
        java.lang.NullPointerException - if the location is null.
        VisADException - unable to create necessary VisAD object
        java.rmi.RemoteException - unable to create necessary remote object
      • NamedLocationTuple

        public NamedLocationTuple(java.lang.String id,
                                  double lat,
                                  double lon,
                                  double alt)
                           throws VisADException,
                                  java.rmi.RemoteException
        Construct an NamedLocationTuple from an identifier and values of lat, lon, alt
        Parameters:
        id - identifier
        lat - latitude (degrees North positive)
        lon - longitude (degrees East positive)
        alt - altitude (meters above sea level)
        Throws:
        VisADException - unable to create necessary VisAD object
        java.rmi.RemoteException - unable to create necessary remote object
      • NamedLocationTuple

        public NamedLocationTuple(java.lang.String id,
                                  EarthLocation location)
                           throws VisADException,
                                  java.rmi.RemoteException
        Construct an NamedLocationTuple from an identifier and an EarthLocation
        Parameters:
        id - identifier
        location - EarthLocation
        Throws:
        VisADException - unable to create necessary VisAD object
        java.rmi.RemoteException - unable to create necessary remote object
    • Method Detail

      • getLatitude

        public Real getLatitude()
        Get the latitude of this location
        Specified by:
        getLatitude in interface LatLonPoint
        Returns:
        Real representing the latitude
      • getLongitude

        public Real getLongitude()
        Get the longitude of this location
        Specified by:
        getLongitude in interface LatLonPoint
        Returns:
        Real representing the longitude
      • getAltitude

        public Real getAltitude()
        Get the altitude of this location
        Specified by:
        getAltitude in interface EarthLocation
        Returns:
        Real representing the altitude
      • getLatLonPoint

        public LatLonPoint getLatLonPoint()
        Get the lat/lon of this location as a LatLonPoint
        Specified by:
        getLatLonPoint in interface EarthLocation
        Returns:
        location of this point.
      • getEarthLocation

        public EarthLocation getEarthLocation()
        Get the lat/lon/alt of this location as an EarthLocation
        Specified by:
        getEarthLocation in interface NamedLocation
        Returns:
        location of this point.
      • getIdentifier

        public Text getIdentifier()
        Return a unique identifier. This might be a Text object representing the name of the station (e.g.: "Denver"), the ICAO 4 letter id (e.g., "KDEN"), a WMO block and station number as a string (e.g., "72565"), or some other identifying string (i.e., "intersection of Mitchell and 47th" or "Point A", or "A") The TextType for this object is IDENTIFIER_TYPE.
        Specified by:
        getIdentifier in interface NamedLocation
        Returns:
        Text whose getValue() method returns the identifier
      • clone

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

        public java.lang.String toString()
        Overrides:
        toString in class DataImpl
        Returns:
        a String representation of this

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.