org.opensha.sha.earthquake.rupForecastImpl.YuccaMountain
Class YuccaMountainERF_List

java.lang.Object
  extended by org.opensha.sha.earthquake.AbstractEpistemicListERF
      extended by org.opensha.sha.earthquake.rupForecastImpl.YuccaMountain.YuccaMountainERF_List
All Implemented Interfaces:
Serializable, Comparable<BaseERF>, EventListener, Named, XMLSaveable, ParameterChangeListener, TimeSpanChangeListener, BaseERF, EpistemicListERF

public class YuccaMountainERF_List
extends AbstractEpistemicListERF

Yucca Mountain ERF List that iterates over all logic tree branches

Author:
vipingupta
See Also:
Serialized Form

Field Summary
static String NAME
           
protected  YuccaMountainERF yuccaMountainERF
           
 
Fields inherited from class org.opensha.sha.earthquake.AbstractEpistemicListERF
adjustableParams, erf_List, parameterChangeFlag, timeSpan, XML_METADATA_NAME
 
Constructor Summary
YuccaMountainERF_List()
           
 
Method Summary
 double getERF_RelativeWeight(int index)
          get the weight of the ERF at the specified index.
 ERF getERF(int index)
          Get the ERF in the list with the specified index.
 String getName()
          Return the name for this class
 int getNumERFs()
          get the number of Eqk Rup Forecasts in this list
 ArrayList getRelativeWeightsList()
          Return the vector containing the Double values with relative weights for each ERF
static void main(String[] args)
           
 
Methods inherited from class org.opensha.sha.earthquake.AbstractEpistemicListERF
addERF, compareTo, fromXMLMetadata, getAdjustableParameterList, getAdjustableParamsIterator, getApplicableRegion, getIncludedTectonicRegionTypes, getParameter, getTimeSpan, parameterChange, setParameter, setParameterChangeFlag, setTimeSpan, timeSpanChange, toXMLMetadata, toXMLMetadata, updateAndSaveForecast, updateForecast
 
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

yuccaMountainERF

protected YuccaMountainERF yuccaMountainERF
Constructor Detail

YuccaMountainERF_List

public YuccaMountainERF_List()
Method Detail

getName

public String getName()
Return the name for this class

Specified by:
getName in interface Named
Overrides:
getName in class AbstractEpistemicListERF
Returns:
: return the name for this class

getNumERFs

public int getNumERFs()
get the number of Eqk Rup Forecasts in this list

Specified by:
getNumERFs in interface EpistemicListERF
Overrides:
getNumERFs in class AbstractEpistemicListERF
Returns:
: number of eqk rup forecasts in this list

getRelativeWeightsList

public ArrayList getRelativeWeightsList()
Return the vector containing the Double values with relative weights for each ERF

Specified by:
getRelativeWeightsList in interface EpistemicListERF
Overrides:
getRelativeWeightsList in class AbstractEpistemicListERF
Returns:
: ArrayList of Double values

getERF

public ERF getERF(int index)
Get the ERF in the list with the specified index. It returns the updated forecast Index can range from 0 to getNumERFs-1

Specified by:
getERF in interface EpistemicListERF
Overrides:
getERF in class AbstractEpistemicListERF
Parameters:
index - : index of Eqk rup forecast to return
Returns:

getERF_RelativeWeight

public double getERF_RelativeWeight(int index)
get the weight of the ERF at the specified index. It always returns 1 because we are doing Monte Carlo simulations

Specified by:
getERF_RelativeWeight in interface EpistemicListERF
Overrides:
getERF_RelativeWeight in class AbstractEpistemicListERF
Parameters:
index - : index of ERF
Returns:
: relative weight of ERF

main

public static void main(String[] args)