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

java.lang.Object
  extended by org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.data.FaultsFetcher
Direct Known Subclasses:
A_FaultsFetcher, B_FaultsFetcher

public abstract class FaultsFetcher
extends Object

This class read the segments from a text file and then go to database to fetch the fault sections

Author:
vipingupta

Field Summary
protected  int deformationModelId
           
protected  DeformationModelPrefDataFinal deformationModelPrefDataFinal
           
protected  ArrayList<String> faultModelNames
           
protected  HashMap faultModels
           
protected  boolean isUnsegmented
           
protected  HashMap segmentNamesMap
           
 
Constructor Summary
FaultsFetcher()
           
FaultsFetcher(String fileName)
           
 
Method Summary
 ArrayList<String> getAllFaultNames()
          Get a list of all segment names
 ArrayList<Integer> getAllFaultSectionsIdList()
          Return a list of ids of all fault sections in any of faults defined in text file.
 ArrayList<String> getAllFaultSectionsNamesList()
          Return a list of names of all fault sections in any of faults defined in text file.
 FaultSegmentData getFaultSegmentData(String faultName, boolean isAseisReducesArea)
          Get segmented fault data for selected fault
 ArrayList getFaultSegmentDataList(boolean isAseisReducesArea)
          This returns a list of FaultSegmentData object for all faults defined in text file
abstract  ArrayList<SegRateConstraint> getSegRateConstraints(String selectedSegmentModel)
          Get recurrence intervals for selected segment model
abstract  ArrayList<SegmentTimeDepData> getSegTimeDepData(String faultName)
          Get time dependent data for selected fault
 void loadSegmentModels(String fileName)
          Create the faultModels hashMap by reading a file that defines what sections are in each segment and what segments are in each fault model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

faultModels

protected HashMap faultModels

deformationModelPrefDataFinal

protected DeformationModelPrefDataFinal deformationModelPrefDataFinal

faultModelNames

protected ArrayList<String> faultModelNames

segmentNamesMap

protected HashMap segmentNamesMap

deformationModelId

protected int deformationModelId

isUnsegmented

protected boolean isUnsegmented
Constructor Detail

FaultsFetcher

public FaultsFetcher()

FaultsFetcher

public FaultsFetcher(String fileName)
Method Detail

loadSegmentModels

public void loadSegmentModels(String fileName)
Create the faultModels hashMap by reading a file that defines what sections are in each segment and what segments are in each fault model


getFaultSegmentDataList

public ArrayList getFaultSegmentDataList(boolean isAseisReducesArea)
This returns a list of FaultSegmentData object for all faults defined in text file

Parameters:
deformationModelId -
isAseisReducesArea -
Returns:

getAllFaultSectionsIdList

public ArrayList<Integer> getAllFaultSectionsIdList()
Return a list of ids of all fault sections in any of faults defined in text file.

Returns:

getAllFaultSectionsNamesList

public ArrayList<String> getAllFaultSectionsNamesList()
Return a list of names of all fault sections in any of faults defined in text file.

Returns:

getFaultSegmentData

public FaultSegmentData getFaultSegmentData(String faultName,
                                            boolean isAseisReducesArea)
Get segmented fault data for selected fault

Returns:

getAllFaultNames

public ArrayList<String> getAllFaultNames()
Get a list of all segment names

Returns:

getSegRateConstraints

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

Parameters:
selectedSegmentModel -
Returns:

getSegTimeDepData

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

Parameters:
faultName -
Returns: