org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.griddedSeis
Class Point2Vert_FaultPoisSource

java.lang.Object
  extended by org.opensha.sha.earthquake.ProbEqkSource
      extended by org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.griddedSeis.Point2Vert_FaultPoisSource
All Implemented Interfaces:
Serializable, Iterable<ProbEqkRupture>, Named, EqkSource

public class Point2Vert_FaultPoisSource
extends ProbEqkSource
implements Serializable

Title: Point2Vert_FaultPoisSource

Description: For a given Location, IncrementalMagFreqDist (of Poissonian rates), MagLengthRelationship, and duration, this creates a vertically dipping, ProbEqkRupture for each magnitude (zero rates are not filtered out!). Each finite rupture is centered on the given Location. A user-defined strike will be used if given, otherwise an random stike will be computed and applied, or a cross-hair source can be applied (two perpendicular faults). One can also specify a magCutOff (magnitudes less than or equal to this will be treated as point sources). This assumes that the duration units are the same as those for the rates in the IncrementalMagFreqDist.

* @author Edward Field

Version:
1.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opensha.sha.earthquake.ProbEqkSource
isPoissonian
 
Constructor Summary
Point2Vert_FaultPoisSource(Location loc, IncrementalMagFreqDist magFreqDist, MagLengthRelationship magLengthRelationship, double duration, double magCutOff, double fracStrikeSlip, double fracNormal, double fracReverse, boolean isCrossHair)
          The Constructor for the case where either a random strike is computed and applied, or a cross-hair source is applied (rather than assigned)
Point2Vert_FaultPoisSource(Location loc, IncrementalMagFreqDist magFreqDist, MagLengthRelationship magLengthRelationship, double strike, double duration, double magCutOff, double fracStrikeSlip, double fracNormal, double fracReverse)
          The Full Constructor
 
Method Summary
 LocationList getAllSourceLocs()
          It returns a list of all the locations which make up the surface for this source.
 double getDuration()
          This gets the duration used in computing Poisson probabilities
 Location getLocation()
           
 double getMinDistance(Site site)
          This returns the shortest horizontal dist to the point source.
 String getName()
          get the name of this class
 int getNumRuptures()
          Get the number of ruptures for this source
 ProbEqkRupture getRupture(int nthRupture)
          This makes and returns the nth probEqkRupture for this source.
 RuptureSurface getSourceSurface()
          This approximates the source as a point at 1.0 km depth.
 boolean isCrossHair()
           
static void main(String[] args)
           
 void setAll(Location loc, IncrementalMagFreqDist magFreqDist, MagLengthRelationship magLengthRelationship, double duration, double fracStrikeSlip, double fracNormal, double fracReverse)
          This computes a random strike and then builds the list of magnitudes, rates, and finite-rupture surfaces using the given MagLenthRelationship.
 void setAll(Location loc, IncrementalMagFreqDist magFreqDist, MagLengthRelationship magLengthRelationship, double strike, double duration, double fracStrikeSlip, double fracNormal, double fracReverse)
          This builds the list of magnitudes, rates, and finite-rupture surfaces using the given strike and MagLenthRelationship.
 void setDuration(double duration)
          This sets the duration used in computing Poisson probabilities.
 void setName(String name)
           
 
Methods inherited from class org.opensha.sha.earthquake.ProbEqkSource
computeApproxTotalProbAbove, computeEquivTotalMomentRate, computeTotalEquivMeanAnnualRate, computeTotalProb, computeTotalProbAbove, computeTotalProbAbove, drawRandomEqkRuptureIndices, drawRandomEqkRuptures, drawSingleRandomEqkRuptureIndex, drawSingleRandomEqkRuptureIndex, getInfo, getRuptureClone, getRuptureList, getRupturesIterator, getSourceMetadata, getTectonicRegionType, isPoissonianSource, isSourcePoissonian, iterator, setInfo, setTectonicRegionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point2Vert_FaultPoisSource

public Point2Vert_FaultPoisSource(Location loc,
                                  IncrementalMagFreqDist magFreqDist,
                                  MagLengthRelationship magLengthRelationship,
                                  double strike,
                                  double duration,
                                  double magCutOff,
                                  double fracStrikeSlip,
                                  double fracNormal,
                                  double fracReverse)
The Full Constructor

Parameters:
loc - - the Location of the point source
magFreqDist - - the mag-freq-dist for the point source
magLengthRelationship - - A relationship for computing length from magnitude
strike - - the strike of the finite SS fault
duration - - the forecast duration
magCutOff - - below (and equal) to this value a PointSurface will be applied
fracStrikeSlip - -
fracNormal - -
fracReverse - -

Point2Vert_FaultPoisSource

public Point2Vert_FaultPoisSource(Location loc,
                                  IncrementalMagFreqDist magFreqDist,
                                  MagLengthRelationship magLengthRelationship,
                                  double duration,
                                  double magCutOff,
                                  double fracStrikeSlip,
                                  double fracNormal,
                                  double fracReverse,
                                  boolean isCrossHair)
The Constructor for the case where either a random strike is computed and applied, or a cross-hair source is applied (rather than assigned)

Parameters:
loc - - the Location of the point source
magFreqDist - - the mag-freq-dist for the point source
magLengthRelationship - - A relationship for computing length from magnitude
duration - - the forecast duration
magCutOff - - below (and equal) to this value a PointSurface will be applied
fracStrikeSlip - -
fracNormal - -
fracReverse - -
isCrossHair - - tells whether to apply random strike or cross-hair source
Method Detail

setAll

public void setAll(Location loc,
                   IncrementalMagFreqDist magFreqDist,
                   MagLengthRelationship magLengthRelationship,
                   double duration,
                   double fracStrikeSlip,
                   double fracNormal,
                   double fracReverse)
This computes a random strike and then builds the list of magnitudes, rates, and finite-rupture surfaces using the given MagLenthRelationship. This also sets the duration.

Parameters:
loc -
magFreqDist -
magLengthRelationship -
duration -
fracStrikeSlip - -
fracNormal - -
fracReverse - -

setAll

public void setAll(Location loc,
                   IncrementalMagFreqDist magFreqDist,
                   MagLengthRelationship magLengthRelationship,
                   double strike,
                   double duration,
                   double fracStrikeSlip,
                   double fracNormal,
                   double fracReverse)
This builds the list of magnitudes, rates, and finite-rupture surfaces using the given strike and MagLenthRelationship. This also sets the duration.

Parameters:
loc -
magFreqDist -
magLengthRelationship -
strike -
duration -
fracStrikeSlip - -
fracNormal - -
fracReverse - -

getAllSourceLocs

public LocationList getAllSourceLocs()
It returns a list of all the locations which make up the surface for this source.

Specified by:
getAllSourceLocs in interface EqkSource
Returns:
LocationList - List of all the locations which constitute the surface of this source

getSourceSurface

public RuptureSurface getSourceSurface()
This approximates the source as a point at 1.0 km depth.

Specified by:
getSourceSurface in interface EqkSource
Returns:

getNumRuptures

public int getNumRuptures()
Description copied from class: ProbEqkSource
Get the number of ruptures for this source

Specified by:
getNumRuptures in interface EqkSource
Specified by:
getNumRuptures in class ProbEqkSource
Returns:
the number of rutures (equals number of mags with non-zero rates)

getRupture

public ProbEqkRupture getRupture(int nthRupture)
This makes and returns the nth probEqkRupture for this source.

Specified by:
getRupture in interface EqkSource
Specified by:
getRupture in class ProbEqkSource

setDuration

public void setDuration(double duration)
This sets the duration used in computing Poisson probabilities. This assumes the same units as in the magFreqDist rates.

Parameters:
duration -

getDuration

public double getDuration()
This gets the duration used in computing Poisson probabilities

Parameters:
duration -

getMinDistance

public double getMinDistance(Site site)
This returns the shortest horizontal dist to the point source.

Specified by:
getMinDistance in class ProbEqkSource
Parameters:
site -
Returns:
minimum distance

getName

public String getName()
get the name of this class

Specified by:
getName in interface Named
Overrides:
getName in class ProbEqkSource
Returns:

setName

public void setName(String name)

main

public static void main(String[] args)

isCrossHair

public boolean isCrossHair()

getLocation

public Location getLocation()