org.opensha.sha.earthquake.rupForecastImpl.WG02
Class WG02_FortranWrappedERF_EpistemicList

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

public class WG02_FortranWrappedERF_EpistemicList
extends AbstractEpistemicListERF

Title: WG02_FortranWrappedERF_EpistemicList

Description: Working Group 2002 Epistemic List of ERFs. This class reads a single file and constructs the forecasts.

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
: Edward Field, Nitin Gupta & Vipin Gupta
See Also:
Serialized Form

Field Summary
static String BACK_SEIS_NAME
           
protected  String backSeis
           
protected  double deltaMag
           
static String GR_TAIL_NAME
           
protected  double gridSpacing
           
protected  String grTail
           
static String INPUT_FILE_NAME_1
           
static String INPUT_FILE_NAME_2
           
protected  List<String> inputFileLines
           
protected  ArrayList iterationLineNumbers
           
static String NAME
           
protected  int numIterations
           
protected  double rupOffset
           
static String SEIS_EXCLUDE
           
static String SEIS_INCLUDE
           
static String WG02_DIRS
           
 
Fields inherited from class org.opensha.sha.earthquake.AbstractEpistemicListERF
adjustableParams, erf_List, parameterChangeFlag, timeSpan, XML_METADATA_NAME
 
Constructor Summary
WG02_FortranWrappedERF_EpistemicList()
          No argument constructor
 
Method Summary
protected  ArrayList getDataForERF(int index)
          gets the data for the ERF at specified index
 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)
           
static List<String> runFortranCode(ParameterList params, TimeSpan timeSpan)
           
 void updateForecast()
          update the forecast
 
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
 
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

INPUT_FILE_NAME_1

public static final String INPUT_FILE_NAME_1
See Also:
Constant Field Values

INPUT_FILE_NAME_2

public static final String INPUT_FILE_NAME_2
See Also:
Constant Field Values

WG02_DIRS

public static final String WG02_DIRS
See Also:
Constant Field Values

iterationLineNumbers

protected ArrayList iterationLineNumbers

numIterations

protected int numIterations

rupOffset

protected double rupOffset

deltaMag

protected double deltaMag

gridSpacing

protected double gridSpacing

backSeis

protected String backSeis

grTail

protected String grTail

inputFileLines

protected List<String> inputFileLines

BACK_SEIS_NAME

public static final String BACK_SEIS_NAME

GR_TAIL_NAME

public static final String GR_TAIL_NAME

SEIS_INCLUDE

public static final String SEIS_INCLUDE

SEIS_EXCLUDE

public static final String SEIS_EXCLUDE
Constructor Detail

WG02_FortranWrappedERF_EpistemicList

public WG02_FortranWrappedERF_EpistemicList()
No argument constructor

Method Detail

runFortranCode

public static List<String> runFortranCode(ParameterList params,
                                          TimeSpan timeSpan)

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

updateForecast

public void updateForecast()
update the forecast

Specified by:
updateForecast in interface BaseERF
Overrides:
updateForecast in class AbstractEpistemicListERF

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

getERF

public ERF getERF(int index)
get the ERF in the list with the specified index

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

getDataForERF

protected ArrayList getDataForERF(int index)
gets the data for the ERF at specified index

Parameters:
index - : index of the data that needs to be read from the file
Returns:

getERF_RelativeWeight

public double getERF_RelativeWeight(int index)
get the weight of the ERF at the specified index

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

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

main

public static void main(String[] args)