|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.earthquake.ProbEqkSource
public abstract class ProbEqkSource
Title: ProbEqkSource
Description: Class for Probabilistic earthquake source. Note that the tectonicRegionType must be one of the options given by the TYPE_* options in the class org.opensha.sha.imr.param.OtherParams.TectonicRegionTypeParam, and the default here is the TYPE_ACTIVE_SHALLOW option in that class. Subclasses must override this in the constructor, or users can change the value using the setTectonicRegion() method here.
| Field Summary | |
|---|---|
protected boolean |
isPoissonian
This boolean tells whether the source is Poissonian, which will influence the calculation sequence in the HazardCurveCalculator. |
protected String |
name
Name of this class |
| Constructor Summary | |
|---|---|
ProbEqkSource()
|
|
| Method Summary | |
|---|---|
double |
computeApproxTotalProbAbove(double mag,
Region region)
This computes the Approx total probability of all ruptures great than or equal to the given mangitude. |
double |
computeEquivTotalMomentRate(double duration)
this computes the Poisson equivalent total moment rate of the source |
double |
computeTotalEquivMeanAnnualRate(double duration)
This computes the equivalent mean annual rate for this source (a sum of the rates of all the ruptures) |
double |
computeTotalProb()
This computes the total probability for this source (a sum of the probabilities of all the ruptures) |
double |
computeTotalProbAbove(double mag)
This computes the total probability of all rutures great than or equal to the given mangitude |
double |
computeTotalProbAbove(double mag,
Region region)
This computes the total probability of all rutures great than or equal to the given mangitude |
ArrayList<Integer> |
drawRandomEqkRuptureIndices()
This draws a random list of rupture indices. |
ArrayList<ProbEqkRupture> |
drawRandomEqkRuptures()
This draws a random list of ruptures. |
int |
drawSingleRandomEqkRuptureIndex()
This draws a single rupture index based on the relative probabilities. |
String |
getInfo()
Get the info for this source |
abstract double |
getMinDistance(Site site)
This computes some measure of the minimum distance between the source and the site passed in. |
String |
getName()
get the name of this class |
abstract int |
getNumRuptures()
Get the number of ruptures for this source |
abstract ProbEqkRupture |
getRupture(int nRupture)
Get the ith rupture for this source This is a handle(or reference) to existing class variable. |
ProbEqkRupture |
getRuptureClone(int nRupture)
this function can be used if a clone is wanted instead of handle to class variable Subsequent calls to this function will not affect the result got previously. |
List<ProbEqkRupture> |
getRuptureList()
Returns the ArrayList consisting of all ruptures for this source all the objects are cloned. |
Iterator<ProbEqkRupture> |
getRupturesIterator()
Get the iterator over all ruptures This function returns the iterator for the rupturelist after calling the method getRuptureList() |
String |
getSourceMetadata()
Returns the Source Metadata. |
TectonicRegionType |
getTectonicRegionType()
This gets the TectonicRegionType for this source |
boolean |
isPoissonianSource()
Checks if the source is Poission. |
boolean |
isSourcePoissonian()
This method tells whether the source is Poissonian, which will influence the calculation sequence in the HazardCurveCalculator |
Iterator<ProbEqkRupture> |
iterator()
|
void |
setInfo(String infoString)
Set the info for this Prob Eqk source |
void |
setTectonicRegionType(TectonicRegionType tectonicRegionType)
This allows one to change the default tectonic-region type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opensha.sha.earthquake.EqkSource |
|---|
getAllSourceLocs, getSourceSurface |
| Field Detail |
|---|
protected String name
protected boolean isPoissonian
| Constructor Detail |
|---|
public ProbEqkSource()
| Method Detail |
|---|
public boolean isSourcePoissonian()
public Iterator<ProbEqkRupture> getRupturesIterator()
getRupturesIterator in interface EqkSourcepublic boolean isPoissonianSource()
public abstract double getMinDistance(Site site)
site -
public abstract int getNumRuptures()
getNumRuptures in interface EqkSourcepublic abstract ProbEqkRupture getRupture(int nRupture)
getRupture in interface EqkSourcei - ith rupturepublic ProbEqkRupture getRuptureClone(int nRupture)
getRuptureClone in interface EqkSourcenRupture -
public List<ProbEqkRupture> getRuptureList()
getRuptureList in interface EqkSourcepublic String getName()
getName in interface Namedpublic void setInfo(String infoString)
infoString - : Infopublic String getInfo()
public String getSourceMetadata()
public double computeTotalEquivMeanAnnualRate(double duration)
public double computeTotalProb()
public double computeTotalProbAbove(double mag)
public double computeApproxTotalProbAbove(double mag,
Region region)
public double computeTotalProbAbove(double mag,
Region region)
public ArrayList<ProbEqkRupture> drawRandomEqkRuptures()
public ArrayList<Integer> drawRandomEqkRuptureIndices()
public int drawSingleRandomEqkRuptureIndex()
public TectonicRegionType getTectonicRegionType()
getTectonicRegionType in interface EqkSourcepublic void setTectonicRegionType(TectonicRegionType tectonicRegionType)
tectonicRegionType - public Iterator<ProbEqkRupture> iterator()
iterator in interface Iterable<ProbEqkRupture>public double computeEquivTotalMomentRate(double duration)
duration -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||