|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.nshmp.sha.calc.SsS1Calculator
public class SsS1Calculator
Title: SsS1Calculator
Description: Computes the values for the Ss and S1 for the given location or territory in USA.
| Field Summary | |
|---|---|
protected static String |
CENTROID_SA
|
protected Connection |
conn
|
protected static float |
Fa
|
protected static float |
Fv
|
protected double |
gridSpacing
|
protected DecimalFormat |
latLonFormat
|
protected static String |
MAXIMUM_SA
|
protected static String |
MINIMUM_SA
|
protected static int |
PGA_IDX
|
protected static String |
PGADET_COL
|
protected static int |
PGADET_IDX
|
protected static String |
PGAUH_COL
|
protected static int |
PGAUH_IDX
|
protected PreparedStatement |
query
|
protected static int |
S1_IDX
|
protected static String |
S1_Text
|
protected static String |
S1CR_COL
|
protected static int |
S1CR_IDX
|
protected static String |
S1DET_COL
|
protected static int |
S1DET_IDX
|
protected static String |
S1UH_COL
|
protected static int |
S1UH_IDX
|
protected static String |
SA
|
protected static int |
SS_IDX
|
protected static String |
Ss_Text
|
protected static String |
SSCR_COL
|
protected static int |
SSCR_IDX
|
protected static String |
SSDET_COL
|
protected static int |
SSDET_IDX
|
protected static String |
SsS1_SubTitle
|
protected static String |
SsS1_TITLE
Some static String for the data printing |
protected static String |
SSUH_COL
|
protected static int |
SSUH_IDX
|
protected static String |
STUB
|
protected static int |
TL_IDX
|
| Constructor Summary | |
|---|---|
SsS1Calculator()
|
|
| Method Summary | |
|---|---|
void |
finalize()
|
String[] |
getColumnHeadersForBatch2009(String edition)
|
double |
getGridSpacing(String selectedRegion)
This applies only for the 2009 Design Data Editions. |
String |
getRegionFromLocation(Location location)
|
ArrayList<ArbitrarilyDiscretizedFunc> |
getSsS1(String region,
String edition,
ArrayList<Location> locations)
For each location in the input argument, fetches and computes the design data from the database. |
ArbitrarilyDiscretizedFunc |
getSsS1(String selectedRegion,
String selectedEdition,
double latitude,
double longitude)
|
ArbitrarilyDiscretizedFunc |
getSsS1(String selectedRegion,
String selectedEdition,
double latitude,
double longitude,
String spectraType)
|
ArbitrarilyDiscretizedFunc |
getSsS1(String selectedRegion,
String selectedEdition,
String zipCode)
|
ArbitrarilyDiscretizedFunc |
getSsS1(String selectedRegion,
String selectedEdition,
String zipCode,
String spectraType)
|
ArbitrarilyDiscretizedFunc |
getSsS1ForTerritory(String territory)
returns the Ss and S1 for Territory |
XY_DataSetList |
getSsS1FuncList(String edition,
String region,
String zipCode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double gridSpacing
protected Connection conn
protected PreparedStatement query
protected static final String STUB
protected static final String PGAUH_COL
protected static final String SSUH_COL
protected static final String S1UH_COL
protected static final String PGADET_COL
protected static final String SSDET_COL
protected static final String S1DET_COL
protected static final String SSCR_COL
protected static final String S1CR_COL
protected static final int SS_IDX
protected static final int S1_IDX
protected static final int SSUH_IDX
protected static final int S1UH_IDX
protected static final int SSDET_IDX
protected static final int S1DET_IDX
protected static final int SSCR_IDX
protected static final int S1CR_IDX
protected static final int PGA_IDX
protected static final int PGAUH_IDX
protected static final int PGADET_IDX
protected static final int TL_IDX
protected static final String SsS1_TITLE
protected static final String SsS1_SubTitle
protected static final String Ss_Text
protected static final String S1_Text
protected static final String SA
protected static final String CENTROID_SA
protected static final String MINIMUM_SA
protected static final String MAXIMUM_SA
protected static final float Fa
protected static final float Fv
protected DecimalFormat latLonFormat
| Constructor Detail |
|---|
public SsS1Calculator()
| Method Detail |
|---|
public void finalize()
finalize in class Objectpublic double getGridSpacing(String selectedRegion)
selectedRegion - The geographic region of the requested location.
public ArbitrarilyDiscretizedFunc getSsS1(String selectedRegion,
String selectedEdition,
double latitude,
double longitude)
latitude - doublelongitude - double
public ArbitrarilyDiscretizedFunc getSsS1(String selectedRegion,
String selectedEdition,
double latitude,
double longitude,
String spectraType)
latitude - doublelongitude - double
public ArbitrarilyDiscretizedFunc getSsS1ForTerritory(String territory)
territory - String
public XY_DataSetList getSsS1FuncList(String edition,
String region,
String zipCode)
public ArbitrarilyDiscretizedFunc getSsS1(String selectedRegion,
String selectedEdition,
String zipCode)
throws ZipCodeErrorException
zipCode -
ZipCodeErrorException
public ArbitrarilyDiscretizedFunc getSsS1(String selectedRegion,
String selectedEdition,
String zipCode,
String spectraType)
throws ZipCodeErrorException
zipCode -
ZipCodeErrorException
public ArrayList<ArbitrarilyDiscretizedFunc> getSsS1(String region,
String edition,
ArrayList<Location> locations)
locations - A list of locations of interest.
public String[] getColumnHeadersForBatch2009(String edition)
public String getRegionFromLocation(Location location)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||