org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.MeanUCERF2
Class MeanUCERF2

java.lang.Object
  extended by org.opensha.sha.earthquake.AbstractERF
      extended by org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.MeanUCERF2.MeanUCERF2
All Implemented Interfaces:
Serializable, Comparable<BaseERF>, Iterable<ProbEqkSource>, EventListener, Named, XMLSaveable, ParameterChangeListener, TimeSpanChangeListener, BaseERF, ERF
Direct Known Subclasses:
MeanUCERF2_FM2pt1, MeanUCERF2_FM2pt2

public class MeanUCERF2
extends AbstractERF

This was checked to make sure this is equal to the mean of what is returned from the UCERF2 Epistemic List.

Author:
See Also:
Serialized Form

Field Summary
protected static String A_FAULTS_EMPIRICAL_FILENAME
           
protected static String A_FAULTS_POISS_FILENAME
           
protected  ArrayList<String> aFaultsBranchParamNames
           
protected  ArrayList<ParamOptions> aFaultsBranchParamValues
           
protected  ArrayList<FaultRuptureSource> aFaultSegmentedSources
           
protected  SummedMagFreqDist aFaultSummedMFD
           
protected  ArrayList<UnsegmentedSource> aFaultUnsegmentedSources
           
protected  ArrayList<ProbEqkSource> allSources
           
static String BACK_SEIS_INFO
           
protected  StringParameter backSeisParam
           
protected  StringParameter backSeisRupParam
           
protected  ArrayList<UnsegmentedSource> bFaultSources
           
protected  SummedMagFreqDist bFaultSummedMFD
           
protected static String C
           
protected  boolean calcSummedMFDs
           
static Boolean CYBERSHAKE_DDW_CORR_PARAM_DEFAULT
           
protected static String CYBERSHAKE_DDW_CORR_PARAM_INFO
           
static String CYBERSHAKE_DDW_CORR_PARAM_NAME
           
protected  BooleanParameter cybershakeDDW_CorrParam
           
protected  IncrementalMagFreqDist cZoneSummedMFD
           
protected  boolean D
           
protected  Double DEFAULT_RUP_OFFSET_VAL
           
protected  DeformationModelSummaryFinal defModelSummaryFinal
           
protected static double DURATION_DEFAULT
           
protected static double DURATION_MAX
           
protected static double DURATION_MIN
           
protected  EmpiricalModel empiricalModel
           
protected  StringParameter floaterTypeParam
           
protected  int lastParamIndex
           
static String NAME
           
protected  NonCA_FaultsFetcher nonCA_B_Faultsfetcher
           
protected  IncrementalMagFreqDist nonCA_B_FaultsSummedMFD
           
protected  ArrayList<ProbEqkSource> nonCA_bFaultSources
           
protected  NSHMP_GridSourceGenerator nshmp_gridSrcGen
           
static String PROB_MODEL_DEFAULT
           
static String PROB_MODEL_WGCEP_PREF_BLEND
           
protected  StringParameter probModelParam
           
protected  CaliforniaRegions.RELM_GRIDDED region
           
protected static String RUP_OFFSET_PARAM_INFO
           
static double RUP_OFFSET_PARAM_MAX
           
static double RUP_OFFSET_PARAM_MIN
           
static String RUP_OFFSET_PARAM_NAME
           
protected static String RUP_OFFSET_PARAM_UNITS
           
protected  DoubleParameter rupOffsetParam
           
protected  HashMap<String,UCERF2_Final_StirlingGriddedSurface> sourceGriddedSurfaceMapping
           
protected  HashMap<String,SummedMagFreqDist> sourceMFDMapping
           
protected  HashMap<String,Double> sourceRakeMapping
           
protected static int START_TIME_DEFAULT
           
protected static int START_TIME_MAX
           
protected static int START_TIME_MIN
           
protected  IncrementalMagFreqDist totBackgroundMFD
           
protected  UCERF2 ucerf2
           
 
Fields inherited from class org.opensha.sha.earthquake.AbstractERF
adjustableParams, nthRupIndicesForSource, parameterChangeFlag, rupIndexForNthRup, srcIndexForNthRup, timeSpan, totNumRups, XML_METADATA_NAME
 
Constructor Summary
MeanUCERF2()
          No argument constructor
 
Method Summary
 IncrementalMagFreqDist getB_FaultMFD()
          This includes the time dependence (if applied)
protected  int getFloaterType()
          Get the Types of floaters desired
 String getName()
          Return the name for this class
 int getNumSources()
          Get the number of earthquake sources
 ProbEqkSource getSource(int iSource)
          Returns the ith earthquake source
 ArrayList<ProbEqkSource> getSourceList()
          Get the list of all earthquake sources.
 IncrementalMagFreqDist getTotalMFD()
          This includes the time dependence (if applied)
static void main(String[] args)
           
protected  void mkNonCA_B_FaultSources()
          Make Non-CA B-Faults Sources
 void parameterChange(ParameterChangeEvent event)
          This is the main function of this interface.
 void setParamDefaults()
           
 void timeSpanChange(EventObject event)
          Function that must be implemented by all Timespan Listeners for ParameterChangeEvents.
protected  void updateFaultSources()
           
 void updateForecast()
          This method tells the forecast that the user is done setting parameters and that it can now prepare itself for use.
protected  void updateGridSources()
           
 void writeB_FaultMgt67probs()
           
 void writeFaultSourceSurfaceOutlines()
           
 
Methods inherited from class org.opensha.sha.earthquake.AbstractERF
baseERF_FromXML, baseERF_ToXML, compareTo, drawRandomEventSet, fromXMLMetadata, getAdjustableParameterList, getApplicableRegion, getIncludedTectonicRegionTypes, getNumRuptures, getParameter, getRupture, getRuptureClone, getSourceClone, getTimeSpan, iterator, setParameter, setParameter, setParameterChangeFlag, setTimeSpan, toXMLMetadata, updateAndSaveForecast
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

C

protected static String C

D

protected boolean D

NAME

public static final String NAME

bFaultSummedMFD

protected SummedMagFreqDist bFaultSummedMFD

aFaultSummedMFD

protected SummedMagFreqDist aFaultSummedMFD

totBackgroundMFD

protected IncrementalMagFreqDist totBackgroundMFD

cZoneSummedMFD

protected IncrementalMagFreqDist cZoneSummedMFD

nonCA_B_FaultsSummedMFD

protected IncrementalMagFreqDist nonCA_B_FaultsSummedMFD

BACK_SEIS_INFO

public static final String BACK_SEIS_INFO

backSeisParam

protected StringParameter backSeisParam

backSeisRupParam

protected StringParameter backSeisRupParam

RUP_OFFSET_PARAM_NAME

public static final String RUP_OFFSET_PARAM_NAME
See Also:
Constant Field Values

DEFAULT_RUP_OFFSET_VAL

protected Double DEFAULT_RUP_OFFSET_VAL

RUP_OFFSET_PARAM_UNITS

protected static final String RUP_OFFSET_PARAM_UNITS
See Also:
Constant Field Values

RUP_OFFSET_PARAM_INFO

protected static final String RUP_OFFSET_PARAM_INFO
See Also:
Constant Field Values

RUP_OFFSET_PARAM_MIN

public static final double RUP_OFFSET_PARAM_MIN
See Also:
Constant Field Values

RUP_OFFSET_PARAM_MAX

public static final double RUP_OFFSET_PARAM_MAX
See Also:
Constant Field Values

rupOffsetParam

protected DoubleParameter rupOffsetParam

floaterTypeParam

protected StringParameter floaterTypeParam

CYBERSHAKE_DDW_CORR_PARAM_NAME

public static final String CYBERSHAKE_DDW_CORR_PARAM_NAME
See Also:
Constant Field Values

CYBERSHAKE_DDW_CORR_PARAM_DEFAULT

public static final Boolean CYBERSHAKE_DDW_CORR_PARAM_DEFAULT

CYBERSHAKE_DDW_CORR_PARAM_INFO

protected static final String CYBERSHAKE_DDW_CORR_PARAM_INFO
See Also:
Constant Field Values

cybershakeDDW_CorrParam

protected BooleanParameter cybershakeDDW_CorrParam

PROB_MODEL_WGCEP_PREF_BLEND

public static final String PROB_MODEL_WGCEP_PREF_BLEND
See Also:
Constant Field Values

PROB_MODEL_DEFAULT

public static final String PROB_MODEL_DEFAULT
See Also:
Constant Field Values

probModelParam

protected StringParameter probModelParam

DURATION_DEFAULT

protected static final double DURATION_DEFAULT
See Also:
Constant Field Values

DURATION_MIN

protected static final double DURATION_MIN
See Also:
Constant Field Values

DURATION_MAX

protected static final double DURATION_MAX
See Also:
Constant Field Values

START_TIME_DEFAULT

protected static final int START_TIME_DEFAULT
See Also:
Constant Field Values

START_TIME_MIN

protected static final int START_TIME_MIN
See Also:
Constant Field Values

START_TIME_MAX

protected static final int START_TIME_MAX
See Also:
Constant Field Values

region

protected CaliforniaRegions.RELM_GRIDDED region

empiricalModel

protected EmpiricalModel empiricalModel

bFaultSources

protected ArrayList<UnsegmentedSource> bFaultSources

aFaultUnsegmentedSources

protected ArrayList<UnsegmentedSource> aFaultUnsegmentedSources

aFaultSegmentedSources

protected ArrayList<FaultRuptureSource> aFaultSegmentedSources

nonCA_bFaultSources

protected ArrayList<ProbEqkSource> nonCA_bFaultSources

allSources

protected ArrayList<ProbEqkSource> allSources

aFaultsBranchParamNames

protected ArrayList<String> aFaultsBranchParamNames

aFaultsBranchParamValues

protected ArrayList<ParamOptions> aFaultsBranchParamValues

lastParamIndex

protected int lastParamIndex

sourceMFDMapping

protected HashMap<String,SummedMagFreqDist> sourceMFDMapping

sourceRakeMapping

protected HashMap<String,Double> sourceRakeMapping

sourceGriddedSurfaceMapping

protected HashMap<String,UCERF2_Final_StirlingGriddedSurface> sourceGriddedSurfaceMapping

nshmp_gridSrcGen

protected NSHMP_GridSourceGenerator nshmp_gridSrcGen

ucerf2

protected UCERF2 ucerf2

defModelSummaryFinal

protected DeformationModelSummaryFinal defModelSummaryFinal

nonCA_B_Faultsfetcher

protected NonCA_FaultsFetcher nonCA_B_Faultsfetcher

calcSummedMFDs

protected boolean calcSummedMFDs

A_FAULTS_POISS_FILENAME

protected static final String A_FAULTS_POISS_FILENAME
See Also:
Constant Field Values

A_FAULTS_EMPIRICAL_FILENAME

protected static final String A_FAULTS_EMPIRICAL_FILENAME
See Also:
Constant Field Values
Constructor Detail

MeanUCERF2

public MeanUCERF2()
No argument constructor

Method Detail

setParamDefaults

public void setParamDefaults()

getSource

public ProbEqkSource getSource(int iSource)
Returns the ith earthquake source

Parameters:
iSource - : index of the source needed
Returns:
the source at idx

getNumSources

public int getNumSources()
Get the number of earthquake sources

Returns:
integer

getSourceList

public ArrayList<ProbEqkSource> getSourceList()
Get the list of all earthquake sources.

Specified by:
getSourceList in interface ERF
Overrides:
getSourceList in class AbstractERF
Returns:
ArrayList of Prob Earthquake sources

getName

public String getName()
Return the name for this class

Returns:
: return the name for this class

getTotalMFD

public IncrementalMagFreqDist getTotalMFD()
This includes the time dependence (if applied)


updateForecast

public void updateForecast()
Description copied from interface: BaseERF
This method tells the forecast that the user is done setting parameters and that it can now prepare itself for use. We could avoid needing this method if the forecast updated every time a parameter was changed, but this would be very inefficient with forecasts that take a lot of time to update. This also avoids problems associated with accidentally changing a parameter in the middle of a calculation.


updateFaultSources

protected void updateFaultSources()

updateGridSources

protected void updateGridSources()

getFloaterType

protected int getFloaterType()
Get the Types of floaters desired

Parameters:
floaterType - - FULL_DDW_FLOATER (0) = only along strike ( rupture full DDW); STRIKE_AND_DOWNDIP_FLOATER (1) = float along strike and down dip; CENTERED_DOWNDIP_FLOATER (2) = float along strike & centered down dip
Returns:

mkNonCA_B_FaultSources

protected void mkNonCA_B_FaultSources()
Make Non-CA B-Faults Sources


parameterChange

public void parameterChange(ParameterChangeEvent event)
This is the main function of this interface. Any time a control paramater or independent paramater is changed by the user in a GUI this function is called, and a paramater change event is passed in. This sets the flag to indicate that the sources need to be updated

Specified by:
parameterChange in interface ParameterChangeListener
Overrides:
parameterChange in class AbstractERF
Parameters:
event -

timeSpanChange

public void timeSpanChange(EventObject event)
Description copied from class: AbstractERF
Function that must be implemented by all Timespan Listeners for ParameterChangeEvents.

Specified by:
timeSpanChange in interface TimeSpanChangeListener
Overrides:
timeSpanChange in class AbstractERF
Parameters:
event - The Event which triggered this function call

writeB_FaultMgt67probs

public void writeB_FaultMgt67probs()

writeFaultSourceSurfaceOutlines

public void writeFaultSourceSurfaceOutlines()

getB_FaultMFD

public IncrementalMagFreqDist getB_FaultMFD()
This includes the time dependence (if applied)


main

public static void main(String[] args)