org.opensha.sha.earthquake
Class ProbEqkRupture

java.lang.Object
  extended by org.opensha.sha.earthquake.EqkRupture
      extended by org.opensha.sha.earthquake.ProbEqkRupture
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CyberShakeEqkRupture

public class ProbEqkRupture
extends EqkRupture

Title:ProbEqkRupture

Description: Probabilistic Earthquake Rupture

Version:
1.0
Author:
rewritten by Ned Field
See Also:
Serialized Form

Field Summary
protected  double probability
           
 
Fields inherited from class org.opensha.sha.earthquake.EqkRupture
aveRake, C, D, hypocenterLocation, mag, otherParams, ruptureSurface
 
Constructor Summary
ProbEqkRupture()
           
ProbEqkRupture(double mag, double aveRake, double probability, RuptureSurface ruptureSurface, Location hypocenterLocation)
           
 
Method Summary
 Object clone()
          Clones the eqk rupture and returns the new cloned object
 String getInfo()
           
 double getMeanAnnualRate(double duration)
          This is a function of probability and duration
 double getProbability()
           
 String getRuptureMetadata()
          Returns the Metadata for the rupture of a given source.
 void setProbability(double p)
           
 
Methods inherited from class org.opensha.sha.earthquake.EqkRupture
addParameter, getAddedParametersIterator, getAveRake, getHypocenterLocation, getMag, getRuptureSurface, removeParameter, setAveRake, setHypocenterLocation, setMag, setPointSurface, setPointSurface, setPointSurface, setPointSurface, setRuptureSurface
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

probability

protected double probability
Constructor Detail

ProbEqkRupture

public ProbEqkRupture()

ProbEqkRupture

public ProbEqkRupture(double mag,
                      double aveRake,
                      double probability,
                      RuptureSurface ruptureSurface,
                      Location hypocenterLocation)
               throws InvalidRangeException
Throws:
InvalidRangeException
Method Detail

getProbability

public double getProbability()

setProbability

public void setProbability(double p)

getMeanAnnualRate

public double getMeanAnnualRate(double duration)
This is a function of probability and duration


getInfo

public String getInfo()
Overrides:
getInfo in class EqkRupture

getRuptureMetadata

public String getRuptureMetadata()
Returns the Metadata for the rupture of a given source. Following information is represented as a single line for the rupture. Each element in the single line is seperated by a tab ("\t").

Returns:
String

clone

public Object clone()
Clones the eqk rupture and returns the new cloned object

Overrides:
clone in class Object
Returns: