org.opensha.sha.earthquake.rupForecastImpl.NewZealand
Class NewZealandERF0909

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

public class NewZealandERF0909
extends AbstractERF

Title: New Zealand Eqk Rup Forecast

Description: . Preliminary version Has been developed by modifying the input files WGCEP_UCERF1_EqkRupForecast.java and YuccaMountainERF.java.

Copyright: Copyright (c) 2009

Company:

Version:
1.0
Author:
: Brendon Bradley
See Also:
Serialized Form

Field Summary
static String BACK_SEIS_EXCLUDE
           
static String BACK_SEIS_INCLUDE
           
static String BACK_SEIS_NAME
           
static String NAME
           
 
Fields inherited from class org.opensha.sha.earthquake.AbstractERF
adjustableParams, parameterChangeFlag, timeSpan, XML_METADATA_NAME
 
Constructor Summary
NewZealandERF0909()
           
 
Method Summary
 String getName()
          Returns the name of this object
 int getNumSources()
           
 ProbEqkSource getSource(int source)
          Returns the earthquake source at the supplied index.
 ArrayList getSourceList()
          Returns the list of all earthquake sources.
 void parameterChange(ParameterChangeEvent event)
          This is the main function of this interface.
 void setMeanMagForSource(String sourceName, double mag)
          Set Mean Mag for a fault source
 void setMomentRateForSource(String sourceName, double momentRate)
          Set Moment Rate for a fault source
 void updateForecast()
          Update the fault Sources with the change in duration.
 
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_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
Constructor Detail

NewZealandERF0909

public NewZealandERF0909()
Method Detail

setMeanMagForSource

public void setMeanMagForSource(String sourceName,
                                double mag)
Set Mean Mag for a fault source

Parameters:
sourceName -
mag -

setMomentRateForSource

public void setMomentRateForSource(String sourceName,
                                   double momentRate)
Set Moment Rate for a fault source

Parameters:
sourceName -
momentRate -

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 -

getNumSources

public int getNumSources()
Returns:
the total number os sources

getSource

public ProbEqkSource getSource(int source)
Description copied from interface: ERF
Returns the earthquake source at the supplied index.

Parameters:
source - the index requested
Returns:
the source at idx

getSourceList

public ArrayList getSourceList()
Description copied from interface: ERF
Returns the list of all earthquake sources.

Specified by:
getSourceList in interface ERF
Overrides:
getSourceList in class AbstractERF
Returns:
list of all possible earthquake sources

getName

public String getName()
Description copied from interface: Named
Returns the name of this object


updateForecast

public void updateForecast()
Update the fault Sources with the change in duration.