visad.georef
Class NamedLocationTuple
- java.lang.Object
-
- visad.ThingImpl
-
- visad.DataImpl
-
- visad.Tuple
-
- visad.georef.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class visad.DataImpl
DataImpl.Syncher
-
-
Field Summary
Fields Modifier and Type Field and Description static TextTypeIDENTIFIER_TYPETextType associated with the identifier that is returned by getIdentifier().-
Fields inherited from interface visad.Data
ABS, ACOS, ACOS_DEGREES, ADD, ASIN, ASIN_DEGREES, ATAN, ATAN_DEGREES, ATAN2, ATAN2_DEGREES, CEIL, COS, COS_DEGREES, DEGREES_TO_RADIANS, DEPENDENT, DIVIDE, EXP, FLOOR, INDEPENDENT, INV_ATAN2, INV_ATAN2_DEGREES, INV_DIVIDE, INV_POW, INV_REMAINDER, INV_SUBTRACT, LOG, MAX, MIN, MULTIPLY, NEAREST_NEIGHBOR, NEGATE, NO_ERRORS, NOP, POW, RADIANS_TO_DEGREES, REMAINDER, RINT, ROUND, SIN, SIN_DEGREES, SQRT, SUBTRACT, TAN, TAN_DEGREES, WEIGHTED_AVERAGE
-
-
Constructor Summary
Constructors Constructor and Description NamedLocationTuple()NamedLocationTuple(java.lang.String id, double lat, double lon, double alt)Construct an NamedLocationTuple from an identifier and values of lat, lon, altNamedLocationTuple(java.lang.String id, EarthLocation location)Construct an NamedLocationTuple from an identifier and an EarthLocationNamedLocationTuple(Text identifier, EarthLocation location)Construct an NamedLocationTuple from a Text and an EarthLocationNamedLocationTuple(Text id, Real lat, Real lon, Real alt)Construct an NamedLocationTuple from a Text and Reals of Latitude, Longitude, and Altitude.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()Clones this instance.RealgetAltitude()Get the altitude of this locationEarthLocationgetEarthLocation()Get the lat/lon/alt of this location as an EarthLocationTextgetIdentifier()Return a unique identifier.RealgetLatitude()Get the latitude of this locationLatLonPointgetLatLonPoint()Get the lat/lon of this location as a LatLonPointRealgetLongitude()Get the longitude of this locationjava.lang.StringtoString()-
Methods inherited from class visad.Tuple
__getitem__, __len__, adjustSamplingError, binary, buildTupleType, computeRanges, equals, getComponent, getComponents, getComponents, getDimension, getLength, getRealComponents, hashCode, isMissing, longString, makeTuple, unary
-
Methods inherited from class visad.DataImpl
__add__, __add__, __div__, __div__, __mod__, __mod__, __mul__, __mul__, __neg__, __pow__, __pow__, __radd__, __rdiv__, __rmod__, __rmul__, __rpow__, __rsub__, __sub__, __sub__, abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, longString, main, max, max, min, min, multiply, multiply, negate, negate, notifyReferences, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary
-
Methods inherited from class visad.ThingImpl
addReference, removeReference
-
Methods inherited from interface visad.georef.LatLonPoint
equals
-
Methods inherited from interface visad.Data
abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, adjustSamplingError, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, isMissing, local, log, log, longString, longString, max, max, min, min, multiply, multiply, negate, negate, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary, unary
-
Methods inherited from interface visad.Thing
addReference, removeReference
-
-
-
-
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:
VisADExceptionjava.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 latitudelon- Real representing the longitudealt- Real representing the altitude- Throws:
VisADException- unable to create necessary VisAD objectjava.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 isnull.VisADException- unable to create necessary VisAD objectjava.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.RemoteExceptionConstruct an NamedLocationTuple from an identifier and values of lat, lon, alt- Parameters:
id- identifierlat- latitude (degrees North positive)lon- longitude (degrees East positive)alt- altitude (meters above sea level)- Throws:
VisADException- unable to create necessary VisAD objectjava.rmi.RemoteException- unable to create necessary remote object
-
NamedLocationTuple
public NamedLocationTuple(java.lang.String id, EarthLocation location) throws VisADException, java.rmi.RemoteExceptionConstruct an NamedLocationTuple from an identifier and an EarthLocation- Parameters:
id- identifierlocation- EarthLocation- Throws:
VisADException- unable to create necessary VisAD objectjava.rmi.RemoteException- unable to create necessary remote object
-
-
Method Detail
-
getLatitude
public Real getLatitude()
Get the latitude of this location- Specified by:
getLatitudein interfaceLatLonPoint- Returns:
- Real representing the latitude
-
getLongitude
public Real getLongitude()
Get the longitude of this location- Specified by:
getLongitudein interfaceLatLonPoint- Returns:
- Real representing the longitude
-
getAltitude
public Real getAltitude()
Get the altitude of this location- Specified by:
getAltitudein interfaceEarthLocation- Returns:
- Real representing the altitude
-
getLatLonPoint
public LatLonPoint getLatLonPoint()
Get the lat/lon of this location as a LatLonPoint- Specified by:
getLatLonPointin interfaceEarthLocation- Returns:
- location of this point.
-
getEarthLocation
public EarthLocation getEarthLocation()
Get the lat/lon/alt of this location as an EarthLocation- Specified by:
getEarthLocationin interfaceNamedLocation- 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 isIDENTIFIER_TYPE.- Specified by:
getIdentifierin interfaceNamedLocation- Returns:
- Text whose getValue() method returns the identifier
-
clone
public final java.lang.Object clone()
Clones this instance.
-
-
DMelt 3.0 © DataMelt by jWork.ORG