org.opensha.sha.calc.IM_EventSet.v02
Class IM_EventSetCalc_v2_1

java.lang.Object
  extended by org.opensha.sha.calc.IM_EventSet.v02.IM_EventSetCalc_v2_1
All Implemented Interfaces:
EventListener, ParameterChangeWarningListener

public class IM_EventSetCalc_v2_1
extends Object
implements ParameterChangeWarningListener

Title: IM_EventSetCalc

Description: This class computes the Mean and Sigma for any Attenuation supported and any IMT supported by these AttenuationRelationships. Sites information is read from a input file.

Version:
1.0
Author:
Ned Field, Nitin Gupta and Vipin Gupta

Field Summary
protected static String A_CLASS_NAME
           
protected static String AS_2005_CLASS_NAME
           
protected static String AS_2008_CLASS_NAME
           
protected static String AS_CLASS_NAME
           
protected static String BC_2004_CLASS_NAME
           
protected static String BJF_CLASS_NAME
          IMR Class Names
protected static String BOORE_2006_CLASS_NAME
           
protected static String BOORE_2008_CLASS_NAME
           
protected static String BS_2003_CLASS_NAME
           
protected static String C_CLASS_NAME
           
protected static String CB_2006_CLASS_NAME
           
protected static String CB_2008_CLASS_NAME
           
protected static String CB_CLASS_NAME
           
protected  ArrayList chosenAttenuationsList
           
protected static String CS_CLASS_NAME
           
protected static String CY_2006_CLASS_NAME
           
protected  String dirName
           
protected static String F_CLASS_NAME
           
protected  ERF forecast
           
protected static String GOULET_2006_CLASS_NAME
           
protected  String inputFileName
           
protected  LocationList locList
           
protected static String MEAN
           
protected static double MIN_DIST
           
protected static String SCEMY_CLASS_NAME
           
protected static String SEA_CLASS_NAME
           
protected static String SIGMA
           
protected  Site siteForSourceCutOff
           
protected static String SM_CLASS_NAME
           
protected  double sourceCutOffDistance
           
protected  ArrayList supportedIMTs
           
protected  ArrayList willsSiteClassVals
           
 
Constructor Summary
IM_EventSetCalc_v2_1(String inpFile, String outDir)
           
 
Method Summary
protected  void createIMRClassInstance(String AttenRelClassName)
          Creates a class instance from a string of the full class name including packages.
 void createSiteList()
          Creates a location using the given locations to find source cut-off disance.
 void getMeanSigma()
          Starting with the Mean and Sigma calculation.
static void main(String[] args)
           
 void parameterChangeWarning(ParameterChangeWarningEvent e)
          Function that must be implemented by all Listeners for ParameterChangeWarnEvents.
 void parseFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

willsSiteClassVals

protected ArrayList willsSiteClassVals

locList

protected LocationList locList

forecast

protected ERF forecast

chosenAttenuationsList

protected ArrayList chosenAttenuationsList

MEAN

protected static final String MEAN
See Also:
Constant Field Values

SIGMA

protected static final String SIGMA
See Also:
Constant Field Values

supportedIMTs

protected ArrayList supportedIMTs

sourceCutOffDistance

protected double sourceCutOffDistance

MIN_DIST

protected static final double MIN_DIST
See Also:
Constant Field Values

siteForSourceCutOff

protected Site siteForSourceCutOff

inputFileName

protected String inputFileName

dirName

protected String dirName

BJF_CLASS_NAME

protected static final String BJF_CLASS_NAME
IMR Class Names

See Also:
Constant Field Values

AS_CLASS_NAME

protected static final String AS_CLASS_NAME
See Also:
Constant Field Values

AS_2008_CLASS_NAME

protected static final String AS_2008_CLASS_NAME
See Also:
Constant Field Values

C_CLASS_NAME

protected static final String C_CLASS_NAME
See Also:
Constant Field Values

SCEMY_CLASS_NAME

protected static final String SCEMY_CLASS_NAME
See Also:
Constant Field Values

F_CLASS_NAME

protected static final String F_CLASS_NAME
See Also:
Constant Field Values

A_CLASS_NAME

protected static final String A_CLASS_NAME
See Also:
Constant Field Values

CB_CLASS_NAME

protected static final String CB_CLASS_NAME
See Also:
Constant Field Values

SM_CLASS_NAME

protected static final String SM_CLASS_NAME
See Also:
Constant Field Values

SEA_CLASS_NAME

protected static final String SEA_CLASS_NAME
See Also:
Constant Field Values

CS_CLASS_NAME

protected static final String CS_CLASS_NAME
See Also:
Constant Field Values

AS_2005_CLASS_NAME

protected static final String AS_2005_CLASS_NAME
See Also:
Constant Field Values

CY_2006_CLASS_NAME

protected static final String CY_2006_CLASS_NAME
See Also:
Constant Field Values

BOORE_2006_CLASS_NAME

protected static final String BOORE_2006_CLASS_NAME
See Also:
Constant Field Values

BOORE_2008_CLASS_NAME

protected static final String BOORE_2008_CLASS_NAME
See Also:
Constant Field Values

CB_2006_CLASS_NAME

protected static final String CB_2006_CLASS_NAME
See Also:
Constant Field Values

CB_2008_CLASS_NAME

protected static final String CB_2008_CLASS_NAME
See Also:
Constant Field Values

BS_2003_CLASS_NAME

protected static final String BS_2003_CLASS_NAME
See Also:
Constant Field Values

BC_2004_CLASS_NAME

protected static final String BC_2004_CLASS_NAME
See Also:
Constant Field Values

GOULET_2006_CLASS_NAME

protected static final String GOULET_2006_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

IM_EventSetCalc_v2_1

public IM_EventSetCalc_v2_1(String inpFile,
                            String outDir)
Method Detail

parseFile

public void parseFile()
               throws FileNotFoundException,
                      IOException
Throws:
FileNotFoundException
IOException

createIMRClassInstance

protected void createIMRClassInstance(String AttenRelClassName)
Creates a class instance from a string of the full class name including packages. This is how you dynamically make objects at runtime if you don't know which\ class beforehand. For example, if you wanted to create a BJF_1997_AttenRel you can do it the normal way:

BJF_1997_AttenRel imr = new BJF_1997_AttenRel()

If your not sure the user wants this one or AS_1997_AttenRel you can use this function instead to create the same class by:

BJF_1997_AttenRel imr = (BJF_1997_AttenRel)ClassUtils.createNoArgConstructorClassInstance("org.opensha.sha.imt.attenRelImpl.BJF_1997_AttenRel");


getMeanSigma

public void getMeanSigma()
Starting with the Mean and Sigma calculation. Creates the directory to put the mean and sigma files.


createSiteList

public void createSiteList()
Creates a location using the given locations to find source cut-off disance.


parameterChangeWarning

public void parameterChangeWarning(ParameterChangeWarningEvent e)
Function that must be implemented by all Listeners for ParameterChangeWarnEvents.

Specified by:
parameterChangeWarning in interface ParameterChangeWarningListener
Parameters:
event - The Event which triggered this function call

main

public static void main(String[] args)