org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.rupCalc
Class SubSectionsRupCalc

java.lang.Object
  extended by org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.rupCalc.SubSectionsRupCalc

public class SubSectionsRupCalc
extends java.lang.Object

This class finds all the ruptures that includes 1 or more subsections. The subsections should be within a cut-off distance from each other at the end points.

Author:
vipingupta

Constructor Summary
SubSectionsRupCalc()
           
SubSectionsRupCalc(double maxSubSectionLength, double cutOffDistance)
           
 
Method Summary
 void doProcessing()
          Find the various subsections, clusters and ruptures
 Tree getCluster(int index)
          Get the cluster at specified index
 int getNumClusters()
          Retunr the number of clusters
 int getNumRuptures()
          Get the number of ruptures
 java.util.ArrayList<MultipleSectionRup> getRupList()
          Return a list of all ruptures
 MultipleSectionRup getRupture(int rupIndex)
          Get the rupture at the specified index
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubSectionsRupCalc

public SubSectionsRupCalc()

SubSectionsRupCalc

public SubSectionsRupCalc(double maxSubSectionLength,
                          double cutOffDistance)
Method Detail

doProcessing

public void doProcessing()
Find the various subsections, clusters and ruptures


getNumClusters

public int getNumClusters()
Retunr the number of clusters

Returns:

getCluster

public Tree getCluster(int index)
Get the cluster at specified index

Parameters:
index -
Returns:

getNumRuptures

public int getNumRuptures()
Get the number of ruptures

Returns:

getRupture

public MultipleSectionRup getRupture(int rupIndex)
Get the rupture at the specified index

Parameters:
rupIndex -
Returns:

getRupList

public java.util.ArrayList<MultipleSectionRup> getRupList()
Return a list of all ruptures

Returns:

main

public static void main(java.lang.String[] args)