org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.data.finalReferenceFaultParamDb
Class DeformationModelPrefDataFinal

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

public class DeformationModelPrefDataFinal
extends Object
implements Serializable

This provides static access to the final preferred data for each deformation model (this does not access the oracle database dynamically, except for the one-time creation of the static data files). TO DO: need to implement methods that saves the data in the HashMaps (slipRateMap;aseismicSlipMap;stdDevMap;faultSectionIdIndexMapMap;faultSectionIdMap) to a static file (ascii or XML), which will be run only once to create the files, and then another to read the HashMap data back in from those files (which the constructor will use).

Author:
Ned Field
See Also:
Serialized Form

Constructor Summary
DeformationModelPrefDataFinal()
           
 
Method Summary
 ArrayList<FaultSectionPrefData> getAllFaultSectionPrefData(int deformationModelId)
          Get all Fault Section Pref data for a deformation model ID
 ArrayList<Integer> getFaultSectionIdsForDeformationModel(int deformationModelId)
          Get a list of all fault sections within this deformation model
 FaultSectionPrefData getFaultSectionPrefData(int deformationModelId, int faultSectionId)
          Get Fault Section Pref data for a deformation model ID and Fault section Id
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeformationModelPrefDataFinal

public DeformationModelPrefDataFinal()
Method Detail

getFaultSectionPrefData

public FaultSectionPrefData getFaultSectionPrefData(int deformationModelId,
                                                    int faultSectionId)
Get Fault Section Pref data for a deformation model ID and Fault section Id

Parameters:
deformationModelId -
faultSectionId -
Returns:

getFaultSectionIdsForDeformationModel

public ArrayList<Integer> getFaultSectionIdsForDeformationModel(int deformationModelId)
Get a list of all fault sections within this deformation model

Parameters:
deformationModelId -
Returns:

getAllFaultSectionPrefData

public ArrayList<FaultSectionPrefData> getAllFaultSectionPrefData(int deformationModelId)
Get all Fault Section Pref data for a deformation model ID

Parameters:
deformationModelId -
Returns:

main

public static void main(String[] args)