org.opensha.sha.earthquake.rupForecastImpl.Frankel02
Class Frankel02_AdjustableEqkRupForecast

java.lang.Object
  extended by org.opensha.sha.earthquake.AbstractERF
      extended by org.opensha.sha.earthquake.rupForecastImpl.Frankel02.Frankel02_AdjustableEqkRupForecast
All Implemented Interfaces:
Serializable, Comparable<BaseERF>, Iterable<ProbEqkSource>, EventListener, Named, XMLSaveable, ParameterChangeListener, TimeSpanChangeListener, BaseERF, ERF

public class Frankel02_AdjustableEqkRupForecast
extends AbstractERF

Title: Frankel02_AdjustableEqkRupForecast

Description:Frankel 2002 Earthquake Rupture Forecast. This class creates the USGS/CGS 2002 California ERF. This does not yet include any subduction-zone events, but does include the four type C (shear) zones.

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
: Edward Field
See Also:
Serialized Form

Field Summary
static double BACK_SEIS_DEPTH
           
static String BACK_SEIS_EXCLUDE
           
static String BACK_SEIS_INCLUDE
           
static String BACK_SEIS_NAME
           
static String BACK_SEIS_ONLY
           
static String BACK_SEIS_RUP_FINITE
           
static String BACK_SEIS_RUP_NAME
           
static String BACK_SEIS_RUP_POINT
           
protected static FaultException ERR
          used for error checking
static String FAULT_MODEL_FRANKEL
           
static String FAULT_MODEL_NAME
           
static String FAULT_MODEL_STIRLING
           
static String NAME
           
static double RUP_OFFSET_PARAM_MAX
           
static double RUP_OFFSET_PARAM_MIN
           
static String RUP_OFFSET_PARAM_NAME
           
 
Fields inherited from class org.opensha.sha.earthquake.AbstractERF
adjustableParams, parameterChangeFlag, timeSpan, XML_METADATA_NAME
 
Constructor Summary
Frankel02_AdjustableEqkRupForecast()
          No argument constructor
 
Method Summary
 ArrayList getAllCharFaultSources()
          Returns the Characterstic Fault Sources from the Frankel-02 ERF
 ArrayList getAllGR_FaultSources()
          Returns the GR Fault Sources from the Frankel-02 ERF
 ArrayList getAllGridSources()
          Returns the Grid Sources from the Frankel-02 ERF
static double getMomentRate(double magLower, int numMag, double deltaMag, double aVal, double bVal)
          this computes the moment for the GR distribution exactly the way frankel's code does it
 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 getSourceList()
          Get the list of all earthquake sources.
 IncrementalMagFreqDist getTotalBackgroundMFD_InsideRELM_region()
          this returns the total MFD inside the RELM region (not including the Type-C (shear) zones)
static IncrementalMagFreqDist getTotalMFD_InsideRELM_region()
          Get the Total MFD after summing MFDs from all sources within EvenlyGriddedRELM_Region if(plot==true), it plots the MFDs in a GUI
static void main(String[] args)
           
 void parameterChange(ParameterChangeEvent event)
          This is the main function of this interface.
 void updateForecast()
          update the forecast
 void writeRuptureTraces()
           
 
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, timeSpanChange, toXMLMetadata, updateAndSaveForecast
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME

BACK_SEIS_DEPTH

public static final double BACK_SEIS_DEPTH
See Also:
Constant Field Values

ERR

protected static final FaultException ERR
used for error checking


FAULT_MODEL_NAME

public static final String FAULT_MODEL_NAME

FAULT_MODEL_FRANKEL

public static final String FAULT_MODEL_FRANKEL

FAULT_MODEL_STIRLING

public static final String FAULT_MODEL_STIRLING

BACK_SEIS_NAME

public static final String BACK_SEIS_NAME

BACK_SEIS_INCLUDE

public static final String BACK_SEIS_INCLUDE

BACK_SEIS_EXCLUDE

public static final String BACK_SEIS_EXCLUDE

BACK_SEIS_ONLY

public static final String BACK_SEIS_ONLY

BACK_SEIS_RUP_NAME

public static final String BACK_SEIS_RUP_NAME

BACK_SEIS_RUP_POINT

public static final String BACK_SEIS_RUP_POINT

BACK_SEIS_RUP_FINITE

public static final String BACK_SEIS_RUP_FINITE

RUP_OFFSET_PARAM_NAME

public static final String RUP_OFFSET_PARAM_NAME
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
Constructor Detail

Frankel02_AdjustableEqkRupForecast

public Frankel02_AdjustableEqkRupForecast()
No argument constructor

Method Detail

getAllCharFaultSources

public ArrayList getAllCharFaultSources()
Returns the Characterstic Fault Sources from the Frankel-02 ERF

Returns:
ArrayList

getAllGR_FaultSources

public ArrayList getAllGR_FaultSources()
Returns the GR Fault Sources from the Frankel-02 ERF

Returns:
ArrayList

getAllGridSources

public ArrayList getAllGridSources()
Returns the Grid Sources from the Frankel-02 ERF

Returns:
ArrayList

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 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

updateForecast

public void updateForecast()
update the forecast


getMomentRate

public static double getMomentRate(double magLower,
                                   int numMag,
                                   double deltaMag,
                                   double aVal,
                                   double bVal)
this computes the moment for the GR distribution exactly the way frankel's code does it


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 -

getTotalBackgroundMFD_InsideRELM_region

public IncrementalMagFreqDist getTotalBackgroundMFD_InsideRELM_region()
this returns the total MFD inside the RELM region (not including the Type-C (shear) zones)


getTotalMFD_InsideRELM_region

public static IncrementalMagFreqDist getTotalMFD_InsideRELM_region()
Get the Total MFD after summing MFDs from all sources within EvenlyGriddedRELM_Region if(plot==true), it plots the MFDs in a GUI

Returns:

main

public static void main(String[] args)

writeRuptureTraces

public void writeRuptureTraces()
                        throws IOException
Throws:
IOException