|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ERF2DBAPI
| Method Summary | |
|---|---|
void |
deleteRupture(int erfID,
int srcID,
int rupID)
Deletes a rupture |
ArrayList<CybershakeERF> |
getAllERFs()
Get a list of all ERFs in the database |
int |
getInserted_ERF_ID(String erfName)
Retrives the id of the ERF from the table ERF_IDs for the corresponding ERF_Name. |
double |
getRuptureProb(int erfId,
int sourceId,
int rupId)
Retrives the rupture probability |
int |
getSourceIDFromName(int erfID,
String name)
Returns the ID for a given rupture name |
int |
insertERFId(String erfName,
String erfDesc)
Inserts ERF name and description in table ERF_IDs |
void |
insertERFParams(int erfId,
String attrName,
String attrVal,
String attrType,
String attrUnits)
Inserts the ERF parameters info in the table "ERF_Metadata" |
void |
insertERFRuptureInfo(int erfId,
int sourceId,
int ruptureId,
String sourceName,
String sourcetype,
double magnitude,
double probability,
double gridSpacing,
double surfaceStartLat,
double surfaceStartLon,
double surfaceStartDepth,
double surfaceEndLat,
double surfaceEndLon,
double surfaceEndDepth,
int numRows,
int numCols,
int numPoints)
Inserts source rupture information for the ERF in table "Ruptures" |
void |
insertRuptureSurface(int erfId,
int sourceId,
int ruptureId,
double lat,
double lon,
double depth,
double rake,
double dip,
double strike)
Inserts surface locations information for each rupture in table "Points" |
void |
insertSrcRupInDB(ERF forecast,
int erfID,
int sourceID,
int rupID)
Insert the specified rupture from the given forecast |
| Method Detail |
|---|
ArrayList<CybershakeERF> getAllERFs()
void insertERFParams(int erfId,
String attrName,
String attrVal,
String attrType,
String attrUnits)
erfName - attrName - attrVal -
int insertERFId(String erfName,
String erfDesc)
erfName - erfDesc -
void insertERFRuptureInfo(int erfId,
int sourceId,
int ruptureId,
String sourceName,
String sourcetype,
double magnitude,
double probability,
double gridSpacing,
double surfaceStartLat,
double surfaceStartLon,
double surfaceStartDepth,
double surfaceEndLat,
double surfaceEndLon,
double surfaceEndDepth,
int numRows,
int numCols,
int numPoints)
erfName - sourceId - ruptureId - sourceName - sourcetype - magnitude - probability - gridSpacing - numRows - numCols - numPoints -
void insertRuptureSurface(int erfId,
int sourceId,
int ruptureId,
double lat,
double lon,
double depth,
double rake,
double dip,
double strike)
erfName - sourceId - ruptureId - lat - lon - depth - rake - dip - strike - int getInserted_ERF_ID(String erfName)
erfName -
double getRuptureProb(int erfId,
int sourceId,
int rupId)
erfId - sourceId - rupId -
void insertSrcRupInDB(ERF forecast,
int erfID,
int sourceID,
int rupID)
forecast - erfID - sourceID - rupID -
void deleteRupture(int erfID,
int srcID,
int rupID)
erfID - srcID - rupID -
int getSourceIDFromName(int erfID,
String name)
erfID - name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||