

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object org.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 magfreqdist and duration is given then the source is assumed to be Poissonian. If a magfreqdist and prob is given then the source is non Poissonian, and the magfreqdist 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(DiscretizedFunc magDist,
RuptureSurface ruptureSurface,
double rake,
double duration)
Constructor  this produces a separate rupture for each mag in the magfreqdist. 

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, nonpoissonian rupture. 

FaultRuptureSource(double magnitude,
RuptureSurface ruptureSurface,
double rake,
double probability,
boolean isPoisson)
Constructor  this is for a single mag source. 
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 magfreq 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/rupturepublic 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 sourcepublic FaultRuptureSource(DiscretizedFunc magDist, RuptureSurface ruptureSurface, double rake, double duration)
magnitudefrequency
 distributionruptureSurface
  any EvenlyGriddedSurface representation of the faultrake
  average rake of the rupturesduration
  the duration in yearspublic FaultRuptureSource(double prob, IncrementalMagFreqDist magDist, RuptureSurface ruptureSurface, double rake)
prob
  total probability of an eventmagDist
  magnitudefrequency distributionruptureSurface
  any EvenlyGriddedSurface representation of the faultrake
  average rake of the rupturesMethod Detail 

public RuptureSurface getSourceSurface()
public LocationList getAllSourceLocs()
public void setDuration(double newDuration)
newDuration
 public int getNumRuptures()
ProbEqkSource
getNumRuptures
in interface EqkSource
getNumRuptures
in class ProbEqkSource
public ProbEqkRupture getRupture(int nthRupture)
getRupture
in interface EqkSource
getRupture
in class ProbEqkSource
public double getMinDistance(Site site)
getMinDistance
in class ProbEqkSource
site

public void setName(String name)
public String getName()
getName
in interface Named
getName
in class ProbEqkSource
public 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 