|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.nshmp.sha.calc.TsubL
public class TsubL
This class is meant to be a lightweight data miner class for fetching T sub L values from the database. This can be run stand-alone on the command line or programatically with a latitude and longitude.
| Constructor Summary | |
|---|---|
TsubL(Connection conn)
Constructor for the TsubL data miner class. |
|
| Method Summary | |
|---|---|
double |
get(double latitude,
double longitude)
Queries the database using the prepared statement based on the STUB. |
static void |
main(String[] args)
Simple test method wrapper. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TsubL(Connection conn)
throws Exception
conn - An active database connection
Exception - If an exception occurs| Method Detail |
|---|
public static void main(String[] args)
throws Exception
args - Command line arguments. Should be two arguments, first is
latitude (decimal degrees) second is longitude (decimal
degrees).
Exception - If an exception occurs. Generally a number format
exception (from poorly formatted input), or an SQL
exception from the database.
public double get(double latitude,
double longitude)
throws Exception
latitude - Latitude (decimal degrees) for the target locationlongitude - Longitude (decimal degrees) for the target location
Exception - If an SQLException occurs or if the query fails to
return data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||