|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.earthquake.ProbEqkSource
org.opensha.sha.earthquake.rupForecastImpl.FaultRuptureSource
public class FaultRuptureSource
Title: FaultRuptureSource
Description: This implements a basic fault source for arbitrary:
If magnitude/probability are given the source is set as non poissonian (and duration is meaningless); If a mag-freq-dist and duration is given then the source is assumed to be Poissonian. If a mag-freq-dist and prob is given then the source is non Poissonian, and the mag-freq-dist is treated as a PDF (relative prob of different mag/rups, such that the sum of these matches the total given). The entire surface ruptures for all cases (no floating of events). Note that duration is the only constructor argument saved internally in order to conserve memory (this is why there are no associated get/set methods for anything besides duration).
Copyright: Copyright (c) 2002
Company:
| Field Summary | |
|---|---|
protected double |
duration
|
protected String |
NAME
|
| Fields inherited from class org.opensha.sha.earthquake.ProbEqkSource |
|---|
isPoissonian, name |
| Constructor Summary | |
|---|---|
FaultRuptureSource(double prob,
IncrementalMagFreqDist magDist,
RuptureSurface ruptureSurface,
double rake)
Constructor - this treats the input "magDist" as a PDF (not absolute rates), and assigns a probability to each rupture (one for each mag magnitude) such that the total probabiulity is that given (as "prob"). |
|
FaultRuptureSource(double magnitude,
RuptureSurface ruptureSurface,
double rake,
double probability)
Constructor - this is for a single mag, non-poissonian rupture. |
|
FaultRuptureSource(double magnitude,
RuptureSurface ruptureSurface,
double rake,
double probability,
boolean isPoisson)
Constructor - this is for a single mag source. |
|
FaultRuptureSource(IncrementalMagFreqDist magDist,
RuptureSurface ruptureSurface,
double rake,
double duration)
Constructor - this produces a separate rupture for each mag in the mag-freq-dist. |
|
| Method Summary | |
|---|---|
LocationList |
getAllSourceLocs()
It returns a list of all the locations which make up the surface for this source. |
double |
getMinDistance(Site site)
This returns the shortest dist to either end of the fault trace, or to the mid point of the fault trace (done also for the bottom edge of the fault). |
String |
getName()
get the name of this class |
int |
getNumRuptures()
Get the number of ruptures for this source |
ProbEqkRupture |
getRupture(int nthRupture)
This method returns the nth Rupture in the list |
RuptureSurface |
getSourceSurface()
Returns the Source Surface. |
void |
scaleRupProbs(double value)
This method scales (multiplies) the probability of each rupture by the given value. |
void |
scaleRupRates(double value)
This method scales (multiplies) the rate of each rupture by the given value. |
void |
setDuration(double newDuration)
This changes the duration for the case where a mag-freq dist was given in the constructor (for the Poisson) case. |
void |
setName(String name)
set the name of this class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String NAME
protected double duration
| Constructor Detail |
|---|
public FaultRuptureSource(double magnitude,
RuptureSurface ruptureSurface,
double rake,
double probability)
magnitude - ruptureSurface - - any EvenlyGriddedSurface representation of the faultrake - - average rake of the rupturesprobability - - the probability of the source/rupture
public FaultRuptureSource(double magnitude,
RuptureSurface ruptureSurface,
double rake,
double probability,
boolean isPoisson)
magnitude - ruptureSurface - - any EvenlyGriddedSurface representation of the faultrake - - average rake of the rupturesprobability - - the probability of the source/ruptureisPoissonian - - whether or not it's a poisson source
public FaultRuptureSource(IncrementalMagFreqDist magDist,
RuptureSurface ruptureSurface,
double rake,
double duration)
magnitude-frequency - distributionruptureSurface - - any EvenlyGriddedSurface representation of the faultrake - - average rake of the rupturesduration - - the duration in years
public FaultRuptureSource(double prob,
IncrementalMagFreqDist magDist,
RuptureSurface ruptureSurface,
double rake)
prob - - total probability of an eventmagDist - - magnitude-frequency distributionruptureSurface - - any EvenlyGriddedSurface representation of the faultrake - - average rake of the ruptures| Method Detail |
|---|
public RuptureSurface getSourceSurface()
public LocationList getAllSourceLocs()
public void setDuration(double newDuration)
newDuration - public int getNumRuptures()
ProbEqkSource
getNumRuptures in interface EqkSourcegetNumRuptures in class ProbEqkSourcepublic ProbEqkRupture getRupture(int nthRupture)
getRupture in interface EqkSourcegetRupture in class ProbEqkSourcepublic double getMinDistance(Site site)
getMinDistance in class ProbEqkSourcesite -
public void setName(String name)
public String getName()
getName in interface NamedgetName in class ProbEqkSourcepublic void scaleRupRates(double value)
public void scaleRupProbs(double value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||