org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.rupCalc
Class MultipleSectionRup
java.lang.Object
org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.rupCalc.MultipleSectionRup
public class MultipleSectionRup
- extends Object
- Author:
- vipingupta
|
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 |
subSectionIdsList
public ArrayList<Integer> subSectionIdsList
MultipleSectionRup
public MultipleSectionRup(ArrayList<Integer> subSectionList)
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: