Package edu.sc.seis.seisFile
Class Location
java.lang.Object
edu.sc.seis.seisFile.Location
Simple class to hold a lat/lon pair, with optional depth, defaults to 0.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
double
boolean
hasDepth()
boolean
int
hashCode()
void
setDescription
(String desc) toString()
-
Constructor Details
-
Location
public Location(double latitude, double longitude) -
Location
public Location(double latitude, double longitude, double depth) -
Location
-
Location
-
Location
-
Location
-
-
Method Details
-
getLatitude
public double getLatitude() -
getLongitude
public double getLongitude() -
hasDepth
public boolean hasDepth()- Returns:
- true if this Location has a depth set.
-
getDepthMeter
- Returns:
- depth in meters if set, otherwise null
-
getDepthKm
- Returns:
- depth in kilometers if set, otherwise null
-
hasDescription
public boolean hasDescription()- Returns:
- true if this Location has an optional description.
-
getDescription
- Returns:
- an optional description, like event time or station code.
-
setDescription
-
toString
-
equals
-
hashCode
public int hashCode()
-