org.opensha.sha.earthquake.rupForecastImpl.PEER_TestCases
Class PEER_MultiSourceForecast

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

public class PEER_MultiSourceForecast
extends AbstractERF

Title: PEER_MultiSourceForecast

Description: This is the forecast used for test-set #2, Cases 2a-c

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
Nitin Gupta & Vipin Gupta Date : Oct 24, 2002
See Also:
Serialized Form

Field Summary
static java.lang.String DEPTH_LOWER_PARAM_NAME
           
static java.lang.String DEPTH_PARAM_UNITS
           
static java.lang.String DEPTH_UPPER_PARAM_NAME
           
static java.lang.String GRID_PARAM_NAME
           
static java.lang.String GRID_PARAM_UNITS
           
static java.lang.String NAME
           
static java.lang.String OFFSET_PARAM_NAME
           
static java.lang.String OFFSET_PARAM_UNITS
           
 
Fields inherited from class org.opensha.sha.earthquake.AbstractERF
adjustableParams, nthRupIndicesForSource, parameterChangeFlag, rupIndexForNthRup, srcIndexForNthRup, timeSpan, totNumRups, XML_METADATA_NAME
 
Constructor Summary
PEER_MultiSourceForecast()
          This constructor constructs the source No argument constructor
 
Method Summary
 java.lang.String getName()
          Return the name for this class
 int getNumSources()
          Get the number of earthquake sources
 ProbEqkSource getSource(int iSource)
          Return the earhthquake source at index i.
 java.util.ArrayList getSourceList()
          Not yet implemented
 void updateForecast()
          update the sources based on the user paramters, only when user has changed a parameter
 
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, 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 java.lang.String NAME
See Also:
Constant Field Values

GRID_PARAM_NAME

public static final java.lang.String GRID_PARAM_NAME
See Also:
Constant Field Values

GRID_PARAM_UNITS

public static final java.lang.String GRID_PARAM_UNITS
See Also:
Constant Field Values

OFFSET_PARAM_NAME

public static final java.lang.String OFFSET_PARAM_NAME
See Also:
Constant Field Values

OFFSET_PARAM_UNITS

public static final java.lang.String OFFSET_PARAM_UNITS
See Also:
Constant Field Values

DEPTH_LOWER_PARAM_NAME

public static final java.lang.String DEPTH_LOWER_PARAM_NAME
See Also:
Constant Field Values

DEPTH_UPPER_PARAM_NAME

public static final java.lang.String DEPTH_UPPER_PARAM_NAME
See Also:
Constant Field Values

DEPTH_PARAM_UNITS

public static final java.lang.String DEPTH_PARAM_UNITS
See Also:
Constant Field Values
Constructor Detail

PEER_MultiSourceForecast

public PEER_MultiSourceForecast()
This constructor constructs the source No argument constructor

Method Detail

updateForecast

public void updateForecast()
update the sources based on the user paramters, only when user has changed a parameter


getSource

public ProbEqkSource getSource(int iSource)
Return the earhthquake source at index i. This methos returns the reference to the class variable. So, when you call this method again, result from previous method call may no longer bevalid. this is secret, fast but dangerous method

Parameters:
iSource - : index of the source needed
Returns:
Returns the ProbEqkSource at index i

getNumSources

public int getNumSources()
Get the number of earthquake sources

Returns:
integer value specifying the number of earthquake sources

getSourceList

public java.util.ArrayList getSourceList()
Not yet implemented

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

getName

public java.lang.String getName()
Return the name for this class

Returns:
: return the name for this class