|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.data.siteData.AbstractSiteData<Double>
org.opensha.commons.data.siteData.impl.CVM4BasinDepth
public class CVM4BasinDepth
| Field Summary | |
|---|---|
protected File |
dataFile
|
static String |
DEPTH_1_0_FILE
|
static String |
DEPTH_2_5_FILE
|
static double |
gridSpacing
|
static double |
minLat
|
static double |
minLon
|
static String |
NAME
|
static String |
SERVLET_1_0_URL
|
static String |
SERVLET_2_5_URL
|
static String |
SHORT_NAME
|
protected boolean |
useServlet
|
| Fields inherited from interface org.opensha.commons.data.siteData.SiteData |
|---|
TYPE_DEPTH_TO_1_0, TYPE_DEPTH_TO_2_5, TYPE_ELEVATION, TYPE_FLAG_INFERRED, TYPE_FLAG_MEASURED, TYPE_TOPOGRAPHIC_SLOPE, TYPE_VS30, TYPE_WILLS_CLASS, XML_METADATA_NAME |
| Constructor Summary | |
|---|---|
CVM4BasinDepth(String type)
Constructor for creating a CVM accessor using servlets |
|
CVM4BasinDepth(String type,
boolean useServlet)
Constructor for creating a CVM accessor using either servlets or default file names |
|
CVM4BasinDepth(String type,
File dataFile)
Constructor for creating a CVM accessor using the given file |
|
CVM4BasinDepth(String type,
File dataFile,
boolean useServlet)
|
|
| Method Summary | |
|---|---|
protected Element |
addXMLParameters(Element paramsEl)
If your SiteData provider has data that needs to be saved in order to be recreated from XML, then override this method. |
static CVM4BasinDepth |
fromXMLParams(Element paramsElem)
|
Region |
getApplicableRegion()
This gives the applicable region for this data set. |
Location |
getClosestDataLocation(Location loc)
Get the location of the closest data point |
String |
getDataMeasurementType()
Get the measurement type for this data, such as "Measured" or "Inferred" |
String |
getDataType()
Get the data type of this dataset |
String |
getMetadata()
Returns the metadata for this dataset. |
String |
getName()
Get the name of this dataset |
double |
getResolution()
This gives the resolution of the dataset in degrees, or 0 for infinite resolution. |
String |
getShortName()
Get the short name of this dataset |
Double |
getValue(Location loc)
Get the value at the closest location |
ArrayList<Double> |
getValues(LocationList locs)
Returns a list of the values at each location. |
boolean |
isValueValid(Double val)
Returns true if the value is valid, and not NaN, N/A, or equivelant for the data type |
static void |
main(String[] args)
|
| Methods inherited from class org.opensha.commons.data.siteData.AbstractSiteData |
|---|
certifyMinMaxBasinDepth, certifyMinMaxVs30, fromXMLMetadata, getAdjustableParameterList, getAnnotatedValue, getAnnotatedValues, getParameterListEditor, hasDataForLocation, initDefaultBasinParams, initDefaultVS30Params, initParamListEditor, toXMLMetadata, toXMLMetadata |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
public static final String SHORT_NAME
public static final double minLat
public static final double minLon
public static final double gridSpacing
public static final String DEPTH_2_5_FILE
public static final String DEPTH_1_0_FILE
public static final String SERVLET_2_5_URL
public static final String SERVLET_1_0_URL
protected boolean useServlet
protected File dataFile
| Constructor Detail |
|---|
public CVM4BasinDepth(String type)
throws IOException
type -
IOException
public CVM4BasinDepth(String type,
boolean useServlet)
throws IOException
type -
IOException
public CVM4BasinDepth(String type,
File dataFile)
throws IOException
type -
IOException
public CVM4BasinDepth(String type,
File dataFile,
boolean useServlet)
throws IOException
IOException| Method Detail |
|---|
public String getName()
SiteData
public String getShortName()
SiteData
public String getMetadata()
SiteData
public String getDataMeasurementType()
SiteData
protected Element addXMLParameters(Element paramsEl)
AbstractSiteData
addXMLParameters in class AbstractSiteData<Double>
public static CVM4BasinDepth fromXMLParams(Element paramsElem)
throws IOException
IOException
public static void main(String[] args)
throws IOException
IOExceptionpublic final Region getApplicableRegion()
SiteData
public final Location getClosestDataLocation(Location loc)
SiteData
public final double getResolution()
SiteData
public final String getDataType()
SiteData
public Double getValue(Location loc)
throws IOException
SiteData
IOException
public final ArrayList<Double> getValues(LocationList locs)
throws IOException
AbstractSiteData
getValues in interface SiteData<Double>getValues in class AbstractSiteData<Double>IOExceptionpublic final boolean isValueValid(Double val)
SiteData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||