org.opensha.refFaultParamDb.dao.db
Class PrefFaultSectionDataDB_DAO

java.lang.Object
  extended by org.opensha.refFaultParamDb.dao.db.PrefFaultSectionDataDB_DAO
All Implemented Interfaces:
java.io.Serializable

public class PrefFaultSectionDataDB_DAO
extends java.lang.Object
implements java.io.Serializable

Title: PrefFaultSectionDataDB_DAO.java

Description: This class creates the Preferred Fault Section Data from Fault Section table. This is needed for faster access to preferred data for scec-vdo and other purposes.

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable
See Also:
Serialized Form

Field Summary
static java.lang.String DIP_DIRECTION
           
static java.lang.String FAULT_TRACE
           
static java.lang.String PREF_ASEISMIC_SLIP
           
static java.lang.String PREF_DIP
           
static java.lang.String PREF_LOWER_DEPTH
           
static java.lang.String PREF_RAKE
           
static java.lang.String PREF_SLIP_RATE
           
static java.lang.String PREF_UPPER_DEPTH
           
static java.lang.String SECTION_ID
           
static java.lang.String SECTION_NAME
           
static java.lang.String SHORT_NAME
           
 
Constructor Summary
PrefFaultSectionDataDB_DAO(DB_AccessAPI dbAccess)
           
 
Method Summary
 java.util.ArrayList<FaultSectionPrefData> getAllFaultSectionPrefData()
          Get a list of all Fault Section Pref Data from the database
 FaultSectionPrefData getFaultSectionPrefData(int faultSectionId)
          Get Preferred fault section data for a Fault Section Id
 double getMaxSlipRate()
          Get Max slip rate from preferred fault data
 double getMinSlipRate()
          Get Min slip rate from preferred fault data
static void main(java.lang.String[] args)
          Recalculate the fault section pref data
 void rePopulatePrefDataTable()
          Remove the exisiting data from preferred data table and re-populate it.
 void rePopulatePrefDataTable(int faultSectionId)
          Refresh the preferred data for a particular fault section
 void setDB_Connection(DB_AccessAPI dbAccess)
          Set the database connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECTION_ID

public static final java.lang.String SECTION_ID
See Also:
Constant Field Values

PREF_SLIP_RATE

public static final java.lang.String PREF_SLIP_RATE
See Also:
Constant Field Values

PREF_DIP

public static final java.lang.String PREF_DIP
See Also:
Constant Field Values

PREF_RAKE

public static final java.lang.String PREF_RAKE
See Also:
Constant Field Values

PREF_UPPER_DEPTH

public static final java.lang.String PREF_UPPER_DEPTH
See Also:
Constant Field Values

PREF_LOWER_DEPTH

public static final java.lang.String PREF_LOWER_DEPTH
See Also:
Constant Field Values

SECTION_NAME

public static final java.lang.String SECTION_NAME
See Also:
Constant Field Values

SHORT_NAME

public static final java.lang.String SHORT_NAME
See Also:
Constant Field Values

FAULT_TRACE

public static final java.lang.String FAULT_TRACE
See Also:
Constant Field Values

PREF_ASEISMIC_SLIP

public static final java.lang.String PREF_ASEISMIC_SLIP
See Also:
Constant Field Values

DIP_DIRECTION

public static final java.lang.String DIP_DIRECTION
See Also:
Constant Field Values
Constructor Detail

PrefFaultSectionDataDB_DAO

public PrefFaultSectionDataDB_DAO(DB_AccessAPI dbAccess)
Method Detail

setDB_Connection

public void setDB_Connection(DB_AccessAPI dbAccess)
Set the database connection

Parameters:
dbAccess -

rePopulatePrefDataTable

public void rePopulatePrefDataTable()
Remove the exisiting data from preferred data table and re-populate it.


rePopulatePrefDataTable

public void rePopulatePrefDataTable(int faultSectionId)
Refresh the preferred data for a particular fault section

Parameters:
faultSectionId -

getAllFaultSectionPrefData

public java.util.ArrayList<FaultSectionPrefData> getAllFaultSectionPrefData()
Get a list of all Fault Section Pref Data from the database

Returns:

getFaultSectionPrefData

public FaultSectionPrefData getFaultSectionPrefData(int faultSectionId)
Get Preferred fault section data for a Fault Section Id

Parameters:
faultSectionId -
Returns:

main

public static void main(java.lang.String[] args)
Recalculate the fault section pref data

Parameters:
args -

getMaxSlipRate

public double getMaxSlipRate()
Get Max slip rate from preferred fault data


getMinSlipRate

public double getMinSlipRate()
Get Min slip rate from preferred fault data