org.opensha.sha.cybershake.db
Interface PeakAmplitudesFromDBAPI

All Known Implementing Classes:
CachedPeakAmplitudesFromDB, PeakAmplitudesFromDB

public interface PeakAmplitudesFromDBAPI


Method Summary
 int deleteAllAmpsForSite(int siteID)
          delete all peak amplitudes for a given site
 int deleteAmpsForRun(int runID)
          delete all peak amplitudes for a given run
 double getIM_Value(int runID, int srcId, int rupId, int rupVarId, CybershakeIM im)
           
 java.util.List<java.lang.Double> getIM_Values(int runID, int srcId, int rupId, CybershakeIM im)
           
 java.util.ArrayList<java.lang.Integer> getRupVarationsForRupture(int erfId, int srcId, int rupId)
           
 java.util.ArrayList<java.lang.Integer> getRupVarScenarioIDs()
           
 java.util.ArrayList<java.lang.Integer> getSGTVarIDs()
           
 java.util.ArrayList<CybershakeIM> getSupportedIMs()
           
 java.util.ArrayList<CybershakeIM> getSupportedIMs(int runID)
           
 

Method Detail

getSupportedIMs

java.util.ArrayList<CybershakeIM> getSupportedIMs()
Returns:
the supported SA Period as list of strings.

getSupportedIMs

java.util.ArrayList<CybershakeIM> getSupportedIMs(int runID)
Returns:
the supported SA Period as list of strings.

getRupVarationsForRupture

java.util.ArrayList<java.lang.Integer> getRupVarationsForRupture(int erfId,
                                                                 int srcId,
                                                                 int rupId)
Parameters:
erfId -
srcId -
rupId -
Returns:
the rupture variation ids for the rupture

getIM_Value

double getIM_Value(int runID,
                   int srcId,
                   int rupId,
                   int rupVarId,
                   CybershakeIM im)
Parameters:
siteId -
erfId -
srcId -
rupId -
rupVarId -
Returns:
the IM Value for the particular IM type

getIM_Values

java.util.List<java.lang.Double> getIM_Values(int runID,
                                              int srcId,
                                              int rupId,
                                              CybershakeIM im)
                                              throws java.sql.SQLException
Parameters:
siteId -
erfId -
srcId -
rupId -
Returns:
the a list of IM Values for the particular IM type
Throws:
java.sql.SQLException

getSGTVarIDs

java.util.ArrayList<java.lang.Integer> getSGTVarIDs()
Returns:
all possible SGT Variation IDs

getRupVarScenarioIDs

java.util.ArrayList<java.lang.Integer> getRupVarScenarioIDs()
Returns:
all possible Rup Var Scenario IDs

deleteAllAmpsForSite

int deleteAllAmpsForSite(int siteID)
delete all peak amplitudes for a given site

Parameters:
siteId -
Returns:

deleteAmpsForRun

int deleteAmpsForRun(int runID)
delete all peak amplitudes for a given run

Parameters:
siteId -
Returns: