org.opensha.sha.earthquake.rupForecastImpl.Point2MultVertSS_Fault
Class Point2MultVertSS_FaultERF

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

public class Point2MultVertSS_FaultERF
extends AbstractERF

Title: Point2MultVertSS_FaultERF

Description: This ERF creates a single Point2MultVertSS_FaultSource for the following user-defined parameters:

The source not Poissonain, and note that the timeSpan does not influence the ERF at all (because the probability is set by the adjustable parameter). The timeSpan is returned by this object is therefore null. The upper and lower seismogenic depths are hard coded at 0 and 1, respectively (because existing distance measures don't depend on the depth extend for vertical strike-slip faults). Rupture lengths are computed using the Wells and Coppersmith Length(Mag) relationship (hard coded).

Version:
1.0
Author:
Ned Field Date : September , 2004
See Also:
Serialized Form

Field Summary
static String DELTA_STRIKE_PARAM_NAME
           
static String MAG_PARAM_NAME
           
static String NAME
           
static String PROB_PARAM_NAME
           
static String RUP_OFFSET_PARAM_NAME
           
static String SRC_LAT_PARAM_NAME
           
static String SRC_LON_PARAM_NAME
           
 
Fields inherited from class org.opensha.sha.earthquake.AbstractERF
adjustableParams, parameterChangeFlag, timeSpan, XML_METADATA_NAME
 
Constructor Summary
Point2MultVertSS_FaultERF()
          Constructor for this source (no arguments)
 
Method Summary
 String getName()
          Return the name for this class
 int getNumSources()
          Returns the number of earthquake sources (always "1" here)
 ProbEqkSource getSource(int iSource)
          Return the earhthquake source at index i.
 ArrayList getSourceList()
          This returns a list of sources (contains only one here)
 void setTimeSpan(TimeSpan time)
          This overides the parent method to ignore whatever is passed in (because timeSpan is always null in this class)
 void updateForecast()
          update the source based on the paramters (only if a parameter value has changed)
 
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, parameterChange, setParameter, setParameter, setParameterChangeFlag, 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
See Also:
Constant Field Values

SRC_LAT_PARAM_NAME

public static final String SRC_LAT_PARAM_NAME
See Also:
Constant Field Values

SRC_LON_PARAM_NAME

public static final String SRC_LON_PARAM_NAME
See Also:
Constant Field Values

MAG_PARAM_NAME

public static final String MAG_PARAM_NAME
See Also:
Constant Field Values

PROB_PARAM_NAME

public static final String PROB_PARAM_NAME
See Also:
Constant Field Values

RUP_OFFSET_PARAM_NAME

public static final String RUP_OFFSET_PARAM_NAME
See Also:
Constant Field Values

DELTA_STRIKE_PARAM_NAME

public static final String DELTA_STRIKE_PARAM_NAME
See Also:
Constant Field Values
Constructor Detail

Point2MultVertSS_FaultERF

public Point2MultVertSS_FaultERF()
Constructor for this source (no arguments)

Method Detail

updateForecast

public void updateForecast()
update the source based on the paramters (only if a parameter value has changed)


getSource

public ProbEqkSource getSource(int iSource)
Return the earhthquake source at index i. Note that this returns a pointer to the source held internally, so that if any parameters are changed, and this method is called again, the source obtained by any previous call to this method will no longer be valid.

Parameters:
iSource - : index of the desired source (only "0" allowed here).
Returns:
Returns the ProbEqkSource at index i

getNumSources

public int getNumSources()
Returns the number of earthquake sources (always "1" here)

Returns:
integer value specifying the number of earthquake sources

getSourceList

public ArrayList getSourceList()
This returns a list of sources (contains only one here)

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

setTimeSpan

public void setTimeSpan(TimeSpan time)
This overides the parent method to ignore whatever is passed in (because timeSpan is always null in this class)

Specified by:
setTimeSpan in interface BaseERF
Overrides:
setTimeSpan in class AbstractERF
Parameters:
timeSpan - : TimeSpan object