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:
java.io.Serializable

public class A_FaultsFetcher
extends FaultsFetcher
implements java.io.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 java.lang.String GEOL_INSIGHT_RUP_MODEL
           
static java.lang.String MAX_RATE_RUP_MODEL
           
static java.lang.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(java.lang.String faultName, java.lang.String rupModelType)
          Get apriori rupture rates
 java.util.ArrayList<EventRates> getEventRatesList()
          It gets the list of all event rates.
 java.util.ArrayList<java.lang.String> getRupModels(java.lang.String faultName)
          Get a list of rup models(Eg.
 java.util.ArrayList<SegRateConstraint> getSegRateConstraints(java.lang.String faultName)
          Get recurrence intervals for selected segment model
 java.util.ArrayList<SegRateConstraint> getSegRateConstraints(java.lang.String faultName, int segIndex)
          Get segment rate constraints for selected faultName and segment index.
 java.util.ArrayList<SegmentTimeDepData> getSegTimeDepData(java.lang.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 java.lang.String MIN_RATE_RUP_MODEL
See Also:
Constant Field Values

MAX_RATE_RUP_MODEL

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

GEOL_INSIGHT_RUP_MODEL

public static final java.lang.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 java.util.ArrayList<SegmentTimeDepData> getSegTimeDepData(java.lang.String faultName)
Get time dependent data for selected fault.

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

getEventRatesList

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

Returns:

getSegRateConstraints

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

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

getSegRateConstraints

public java.util.ArrayList<SegRateConstraint> getSegRateConstraints(java.lang.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(java.lang.String faultName,
                                        java.lang.String rupModelType)
Get apriori rupture rates

Parameters:
selectedSegmentModel -
Returns:

getRupModels

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

Parameters:
faultModel -
Returns: