|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.cybershake.db.CybershakeSiteInfo2DB
public class CybershakeSiteInfo2DB
| Field Summary | |
|---|---|
static double |
CUT_OFF_DISTANCE
|
| Constructor Summary | |
|---|---|
CybershakeSiteInfo2DB(DBAccess db)
|
|
| Method Summary | |
|---|---|
void |
closeWriter()
|
ArrayList<CybershakeSite> |
getAllSitesFromDB()
Gets all CybershakeSite's from the Database |
ArrayList<String> |
getCS_SitesList()
|
LocationList |
getCS_SitesListLocations()
|
int |
getCybershakeSiteId(double lat,
double lon)
Returns the Cybershake site id for the corresponding location with given Lat and Lon. |
int |
getCybershakeSiteId(String cybershakeShortSiteName)
Returns the CyberShake site id for the corresponding Cybershake short site name in the database |
Location |
getCyberShakeSiteLocation(String csSiteName)
|
int |
getMatchedCSSourceID(ERF eqkRupForecast,
int erfID,
int erfSourceID)
|
ArrayList<Integer> |
getRupIDsForSite(String csSiteName,
int erfID,
int srcID)
|
CybershakeSite |
getSiteFromDB(int siteID)
Gets a CybershakeSite from the Database |
CybershakeSite |
getSiteFromDB(String shortName)
Gets a CybershakeSite from the Database |
ArrayList<Integer> |
getSrcIDsForSite(String csSiteName,
int erfID)
|
static void |
main(String[] args)
|
int |
putCybershakeLocationInDB(String siteName,
String siteShortName,
double siteLat,
double siteLon)
Puts the Cybershake locations in the database |
void |
putCyberShakeLocationRegionalBounds(ERF eqkRupForecast,
int erfId,
int siteId,
double locLat,
double locLon,
boolean update)
Computes the regional bounds for the given cybershake and puts in the database. |
ArrayList<int[]> |
putCyberShakeLocationSrcRupInfo(ERF eqkRupForecast,
int erfId,
int siteId,
double locLat,
double locLon)
Finds all the ruptures that have any location on their surface within Cybershake location circular regional bounds. |
ArrayList<int[]> |
putCyberShakeLocationSrcRupInfo(ERF eqkRupForecast,
int erfId,
int siteId,
double locLat,
double locLon,
boolean checkAddRup)
Finds all the ruptures that have any location on their surface within Cybershake location circular regional bounds with option to add ruptures that are not already in database. |
ArrayList<int[]> |
putCyberShakeLocationSrcRupInfo(ERF eqkRupForecast,
int erfId,
int siteId,
double locLat,
double locLon,
boolean checkAddRup,
String addLogFileName)
Finds all the ruptures that have any location on their surface within Cybershake location circular regional bounds with option to add ruptures that are not already in database (with logging). |
void |
setForceAddRuptures(boolean force)
|
void |
setMatchSourceNames(boolean match)
|
void |
setSkipToRup(int rup)
|
void |
setSkipToSource(int source)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static double CUT_OFF_DISTANCE
| Constructor Detail |
|---|
public CybershakeSiteInfo2DB(DBAccess db)
| Method Detail |
|---|
public void setMatchSourceNames(boolean match)
public int putCybershakeLocationInDB(String siteName,
String siteShortName,
double siteLat,
double siteLon)
siteName - siteShortName - siteLat - siteLon -
public int getCybershakeSiteId(String cybershakeShortSiteName)
cybershakeShortSiteName -
public int getCybershakeSiteId(double lat,
double lon)
lat - lon -
public ArrayList<int[]> putCyberShakeLocationSrcRupInfo(ERF eqkRupForecast,
int erfId,
int siteId,
double locLat,
double locLon)
erf - erfId - siteId - locLat - locLon -
public ArrayList<int[]> putCyberShakeLocationSrcRupInfo(ERF eqkRupForecast,
int erfId,
int siteId,
double locLat,
double locLon,
boolean checkAddRup)
erf - erfId - siteId - locLat - locLon - checkAddRup - make sure rupture is in DB, and if not, add it
public int getMatchedCSSourceID(ERF eqkRupForecast,
int erfID,
int erfSourceID)
public ArrayList<int[]> putCyberShakeLocationSrcRupInfo(ERF eqkRupForecast,
int erfId,
int siteId,
double locLat,
double locLon,
boolean checkAddRup,
String addLogFileName)
erf - erfId - siteId - locLat - locLon - checkAddRup - make sure rupture is in DB, and if not, add itaddLogFileName - filename to log to (no logging if empty)public void setSkipToSource(int source)
public void setSkipToRup(int rup)
public void setForceAddRuptures(boolean force)
public void closeWriter()
public void putCyberShakeLocationRegionalBounds(ERF eqkRupForecast,
int erfId,
int siteId,
double locLat,
double locLon,
boolean update)
eqkRupForecast - erfId - siteId - locLat - locLon - update - - update bounds, don't reinsertpublic ArrayList<String> getCS_SitesList()
public LocationList getCS_SitesListLocations()
public ArrayList<Integer> getSrcIDsForSite(String csSiteName,
int erfID)
siteShortName - short site name as in database for Cybershake site
public ArrayList<Integer> getRupIDsForSite(String csSiteName,
int erfID,
int srcID)
siteShortName - srcId -
public Location getCyberShakeSiteLocation(String csSiteName)
csSiteName -
public CybershakeSite getSiteFromDB(String shortName)
shortName -
public CybershakeSite getSiteFromDB(int siteID)
shortName -
public ArrayList<CybershakeSite> getAllSitesFromDB()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||