Package gov.usgs.earthquake.nshmp.model
Class SystemRuptureSet
- java.lang.Object
-
- gov.usgs.earthquake.nshmp.model.IterableRuptureSet
-
- gov.usgs.earthquake.nshmp.model.SystemRuptureSet
-
- All Implemented Interfaces:
RuptureSet,Iterable<Rupture>
public class SystemRuptureSet extends IterableRuptureSet
Fault-system rupture set. May be used fro crustal faults or subduction interface.- Author:
- U.S. Geological Survey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSystemRuptureSet.StatisticsContainer of summary data for this sytem rupture set.classSystemRuptureSet.SystemRuptureA single rupture in a fault system.
-
Field Summary
Fields Modifier and Type Field Description SystemRuptureSet.Statisticsstats
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckDistance(Location site, double distance)Returntrueif this rupture set is within the supplied distance from a location,falseotherwise.booleanequals(Object obj)List<Feature>features()The GeoJSON features for this rupture set.Ruptureget(int index)Return the rupture at the specified index.GmmTreegmmTree()Return the ground motion model logic tree associated with this Rupture Set.inthashCode()intid()The numeric ID of this rupture set.Iterator<Rupture>iterator()Locationlocation(Location site)The closest point on the fault trace, relative to the supplied siteLocation.LogicTree<Mfd>mfdTree()The logic tree of MFDs in this rupture set.Stringname()The display name of the rupture set.GriddedSurfacesection(int index)The fault section surface corresponding to the suppliedindex.StringsectionName(int index)The name of the fault section corresponding to the suppliedindex.TectonicSettingsetting()TheTectonicSettingof this rupture set.intsize()The number of ruptures in this rupture set.static Function<SystemRuptureSet,InputList>toInputsFunction(Site site)Return an instance of aFunctionthat converts aSystemRuptureSetto a ground motion modelInputList.static Function<SystemRuptureSet,IntervalArray>toRatesFunction(Location location, double distance, IntervalArray modelMfd)Return an instance of aFunctionthat converts aSystemRuptureSetto a ground motion modelInputList.StringtoString()SourceTypetype()TheSourceTypeidentifier.doubleweight()The weight of theSourceTreebranch to which this rupture set is attached.-
Methods inherited from class gov.usgs.earthquake.nshmp.model.IterableRuptureSet
checkDistance
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface gov.usgs.earthquake.nshmp.model.RuptureSet
totalMfd
-
-
-
-
Field Detail
-
stats
public final SystemRuptureSet.Statistics stats
-
-
Method Detail
-
size
public int size()
Description copied from class:IterableRuptureSetThe number of ruptures in this rupture set.- Specified by:
sizein interfaceRuptureSet- Specified by:
sizein classIterableRuptureSet
-
get
public Rupture get(int index)
Description copied from class:IterableRuptureSetReturn the rupture at the specified index.- Specified by:
getin classIterableRuptureSet- Parameters:
index- of the rupture to retrieve.
-
features
public List<Feature> features()
Description copied from interface:RuptureSetThe GeoJSON features for this rupture set. In many cases only a singleFeaturewill be returned.
-
mfdTree
public LogicTree<Mfd> mfdTree()
Description copied from interface:RuptureSetThe logic tree of MFDs in this rupture set.
-
checkDistance
public boolean checkDistance(Location site, double distance)
Description copied from class:IterableRuptureSetReturntrueif this rupture set is within the supplied distance from a location,falseotherwise.- Specified by:
checkDistancein classIterableRuptureSet- Parameters:
site- of interestdistance- to check
-
section
public GriddedSurface section(int index)
The fault section surface corresponding to the suppliedindex.This method exists because system rupture sets are complex and commonly encapsulate 100K+ sources. The results of a hazard calculation and disaggregation are therefore better represented in the context of individual fault sections, rather than on a per-source basis.
- Parameters:
index- of fault section surface to retrieve
-
sectionName
public String sectionName(int index)
The name of the fault section corresponding to the suppliedindex.- Parameters:
index- of fault section name to retrieve
-
location
public Location location(Location site)
The closest point on the fault trace, relative to the supplied siteLocation.
-
toRatesFunction
public static Function<SystemRuptureSet,IntervalArray> toRatesFunction(Location location, double distance, IntervalArray modelMfd)
Return an instance of aFunctionthat converts aSystemRuptureSetto a ground motion modelInputList.- Parameters:
location- with which to initialize instance.distance- if interest (relevant source radius)modelMfd- MFD to populate
-
toInputsFunction
public static Function<SystemRuptureSet,InputList> toInputsFunction(Site site)
Return an instance of aFunctionthat converts aSystemRuptureSetto a ground motion modelInputList.- Parameters:
site- with which to initialize instance.
-
name
public String name()
Description copied from interface:RuptureSetThe display name of the rupture set.- Specified by:
namein interfaceRuptureSet
-
id
public int id()
Description copied from interface:RuptureSetThe numeric ID of this rupture set.- Specified by:
idin interfaceRuptureSet
-
setting
public TectonicSetting setting()
Description copied from interface:RuptureSetTheTectonicSettingof this rupture set.- Specified by:
settingin interfaceRuptureSet
-
type
public SourceType type()
Description copied from interface:RuptureSetTheSourceTypeidentifier.- Specified by:
typein interfaceRuptureSet
-
gmmTree
public GmmTree gmmTree()
Description copied from interface:RuptureSetReturn the ground motion model logic tree associated with this Rupture Set.- Specified by:
gmmTreein interfaceRuptureSet
-
weight
public double weight()
Description copied from interface:RuptureSetThe weight of theSourceTreebranch to which this rupture set is attached.- Specified by:
weightin interfaceRuptureSet
-
-