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

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

public class MultipleSectionRup
extends Object

Author:
vipingupta

Field Summary
 ArrayList<Integer> subSectionIdsList
           
 
Constructor Summary
MultipleSectionRup(ArrayList<Integer> subSectionList)
           
 
Method Summary
 boolean equals(Object obj)
          Finds whether 2 ruptures are same or not.
 int getNumSubSections()
          Get the number of subsections in this rupture
 int getSubSection(int index)
          Get subsection at ith index
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subSectionIdsList

public ArrayList<Integer> subSectionIdsList
Constructor Detail

MultipleSectionRup

public MultipleSectionRup(ArrayList<Integer> subSectionList)
Method Detail

getNumSubSections

public int getNumSubSections()
Get the number of subsections in this rupture

Returns:

getSubSection

public int getSubSection(int index)
Get subsection at ith index

Parameters:
index -
Returns:

equals

public boolean equals(Object obj)
Finds whether 2 ruptures are same or not. It checks: 1. Number of subsections in both ruptures are same 2. First and last subsections are same in both

Overrides:
equals in class Object
Parameters:
rup -
Returns: