org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.data
Class A_FaultsFetcher

java.lang.Object
  extended by org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.data.FaultsFetcher
      extended by org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.data.A_FaultsFetcher
All Implemented Interfaces:
Serializable

public class A_FaultsFetcher
extends FaultsFetcher
implements Serializable

This class read the A-Faults segments from a text file. Then it fetches the fault sections from the database It also reads the table 7 (site name, event rate. sigma and 95% confidence bounds) in Appendix C of UCERF2 report Additionally. it reads Time Dependent data (last event, slip, aperiodicity) for each segment from an excel sheet.

Author:
vipingupta
See Also:
Serialized Form

Field Summary
static String GEOL_INSIGHT_RUP_MODEL
           
static String MAX_RATE_RUP_MODEL
           
static String MIN_RATE_RUP_MODEL
           
 
Fields inherited from class org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.data.FaultsFetcher
deformationModelId, deformationModelPrefDataFinal, faultModelNames, faultModels, isUnsegmented, segmentNamesMap
 
Constructor Summary
A_FaultsFetcher()
          Default constructor
 
Method Summary
 ValueWeight[] getAprioriRupRates(String faultName, String rupModelType)
          Get apriori rupture rates
 ArrayList<EventRates> getEventRatesList()
          It gets the list of all event rates.
 ArrayList<String> getRupModels(String faultName)
          Get a list of rup models(Eg.
 ArrayList<SegRateConstraint> getSegRateConstraints(String faultName)
          Get recurrence intervals for selected segment model
 ArrayList<SegRateConstraint> getSegRateConstraints(String faultName, int segIndex)
          Get segment rate constraints for selected faultName and segment index.
 ArrayList<SegmentTimeDepData> getSegTimeDepData(String faultName)
          Get time dependent data for selected fault.
 void setDeformationModel(DeformationModelSummary defModelSummary, boolean isUnsegmented)
          Set the Deformation Model to be used.
 
Methods inherited from class org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.data.FaultsFetcher
getAllFaultNames, getAllFaultSectionsIdList, getAllFaultSectionsNamesList, getFaultSegmentData, getFaultSegmentDataList, loadSegmentModels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_RATE_RUP_MODEL

public static final String MIN_RATE_RUP_MODEL
See Also:
Constant Field Values

MAX_RATE_RUP_MODEL

public static final String MAX_RATE_RUP_MODEL
See Also:
Constant Field Values

GEOL_INSIGHT_RUP_MODEL

public static final String GEOL_INSIGHT_RUP_MODEL
See Also:
Constant Field Values
Constructor Detail

A_FaultsFetcher

public A_FaultsFetcher()
Default constructor

Method Detail

setDeformationModel

public void setDeformationModel(DeformationModelSummary defModelSummary,
                                boolean isUnsegmented)
Set the Deformation Model to be used. Also set whether A-Faults are segmented or unsegmented. Both these parameters decide the file to be read.

Parameters:
defModelSummary -
isUnsegmented -

getSegTimeDepData

public ArrayList<SegmentTimeDepData> getSegTimeDepData(String faultName)
Get time dependent data for selected fault.

Specified by:
getSegTimeDepData in class FaultsFetcher
Parameters:
faultName -
Returns:

getEventRatesList

public ArrayList<EventRates> getEventRatesList()
It gets the list of all event rates. It gets them from Tom Parson's excel sheet

Returns:

getSegRateConstraints

public ArrayList<SegRateConstraint> getSegRateConstraints(String faultName)
Get recurrence intervals for selected segment model

Specified by:
getSegRateConstraints in class FaultsFetcher
Parameters:
selectedSegmentModel -
Returns:

getSegRateConstraints

public ArrayList<SegRateConstraint> getSegRateConstraints(String faultName,
                                                          int segIndex)
Get segment rate constraints for selected faultName and segment index. Returns an empty list, if there is no rate constraint for this segment

Parameters:
faultModel -
segIndex -
Returns:

getAprioriRupRates

public ValueWeight[] getAprioriRupRates(String faultName,
                                        String rupModelType)
Get apriori rupture rates

Parameters:
selectedSegmentModel -
Returns:

getRupModels

public ArrayList<String> getRupModels(String faultName)
Get a list of rup models(Eg. Min, Max, Geological Insight) for selected faultName

Parameters:
faultModel -
Returns: