org.opensha.sha.cybershake.db
Class AttenRelCurves2DB

java.lang.Object
  extended by org.opensha.sha.cybershake.db.AttenRelCurves2DB

public class AttenRelCurves2DB
extends Object


Constructor Summary
AttenRelCurves2DB(DBAccess db)
           
 
Method Summary
 void deleteAllCurvesFromDataset(int datasetID, int imTypeID)
           
 void deleteCurves(List<Integer> curveIDs)
           
 HashMap<Location,ArbitrarilyDiscretizedFunc> fetchCurves(int datasetID, int imTypeID)
           
 GeoDataSet fetchMap(int datasetID, int imTypeID, boolean isProbAt_IML, double level, boolean latitudeX)
           
 ArbitrarilyDiscretizedFunc getCurve(int curveID)
           
 HashMap<Location,Integer> getCurveIDs(int datasetID, int imTypeID)
           
 HashMap<Integer,ArbitrarilyDiscretizedFunc> getCurves(Iterable<Integer> curveIDs)
           
 HashMap<Integer,ArbitrarilyDiscretizedFunc> getCurves(Iterable<Integer> curveIDs, double minValue, double maxValue, boolean isProbAt_IML)
           
 void insertARCurves(Date date, int datasetID, int imTypeID, Map<Location,? extends DiscretizedFunc> map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttenRelCurves2DB

public AttenRelCurves2DB(DBAccess db)
Method Detail

insertARCurves

public void insertARCurves(Date date,
                           int datasetID,
                           int imTypeID,
                           Map<Location,? extends DiscretizedFunc> map)
                    throws SQLException
Throws:
SQLException

getCurveIDs

public HashMap<Location,Integer> getCurveIDs(int datasetID,
                                             int imTypeID)
                                      throws SQLException
Throws:
SQLException

getCurve

public ArbitrarilyDiscretizedFunc getCurve(int curveID)
                                    throws SQLException
Throws:
SQLException

getCurves

public HashMap<Integer,ArbitrarilyDiscretizedFunc> getCurves(Iterable<Integer> curveIDs)
                                                      throws SQLException
Throws:
SQLException

getCurves

public HashMap<Integer,ArbitrarilyDiscretizedFunc> getCurves(Iterable<Integer> curveIDs,
                                                             double minValue,
                                                             double maxValue,
                                                             boolean isProbAt_IML)
                                                      throws SQLException
Throws:
SQLException

deleteAllCurvesFromDataset

public void deleteAllCurvesFromDataset(int datasetID,
                                       int imTypeID)
                                throws SQLException
Throws:
SQLException

deleteCurves

public void deleteCurves(List<Integer> curveIDs)
                  throws SQLException
Throws:
SQLException

fetchCurves

public HashMap<Location,ArbitrarilyDiscretizedFunc> fetchCurves(int datasetID,
                                                                int imTypeID)
                                                         throws SQLException
Throws:
SQLException

fetchMap

public GeoDataSet fetchMap(int datasetID,
                           int imTypeID,
                           boolean isProbAt_IML,
                           double level,
                           boolean latitudeX)
                    throws SQLException
Throws:
SQLException