org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF1
Class WGCEP_UCERF1_EqkRupForecast

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

public class WGCEP_UCERF1_EqkRupForecast
extends AbstractERF

Title: WGCEP_UCERF1_EqkRupForecast

Description: . This does not yet include any C zones or the Cascadia subduction zone.

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
           
static String TIME_DEPENDENT_PARAM_NAME
           
 
Fields inherited from class org.opensha.sha.earthquake.AbstractERF
adjustableParams, nthRupIndicesForSource, parameterChangeFlag, rupIndexForNthRup, srcIndexForNthRup, timeSpan, totNumRups, XML_METADATA_NAME
 
Constructor Summary
WGCEP_UCERF1_EqkRupForecast()
          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
 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.
 TimeSpan getTimeSpan()
          return the time span object.
static void main(String[] args)
           
 void parameterChange(ParameterChangeEvent event)
          This is the main function of this interface.
 void updateForecast()
          update the forecast
 void writeA_FaultMFDs()
          This gives MFDs for each source that are comparable to UCERF 2 This assumes time-ind.and otherwise default values in the calculation.
 void writeA_FaultTotalProbs()
           
 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, 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

TIME_DEPENDENT_PARAM_NAME

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

WGCEP_UCERF1_EqkRupForecast

public WGCEP_UCERF1_EqkRupForecast()
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

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


writeA_FaultTotalProbs

public void writeA_FaultTotalProbs()

writeA_FaultMFDs

public void writeA_FaultMFDs()
This gives MFDs for each source that are comparable to UCERF 2 This assumes time-ind.and otherwise default values in the calculation. This was double checked on 3/27/07 by Ned - should be fine


main

public static void main(String[] args)

writeRuptureTraces

public void writeRuptureTraces()
                        throws IOException
Throws:
IOException

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 -

getTimeSpan

public TimeSpan getTimeSpan()
return the time span object. In addition to returning the timespan it checks for the type of timeSpan, which can be time-dependent or time-independent.

Specified by:
getTimeSpan in interface BaseERF
Overrides:
getTimeSpan in class AbstractERF
Returns:
: time span object is returned which contains start time and duration