Package gov.usgs.earthquake.nshmp.model
Class SystemRuptureSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- gov.usgs.earthquake.nshmp.model.SystemRuptureSet
-
- All Implemented Interfaces:
RuptureSet<SystemRuptureSet.SystemSource>,Iterable<SystemRuptureSet.SystemSource>,Collection<SystemRuptureSet.SystemSource>,List<SystemRuptureSet.SystemSource>
public class SystemRuptureSet extends AbstractList<T>
Crustal fault-system rupture set.- Author:
- U.S. Geological Survey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSystemRuptureSet.StatisticsContainer of summary data for this sytem source set.classSystemRuptureSet.SystemSourceA single source in a fault system.
-
Field Summary
Fields Modifier and Type Field Description SystemRuptureSet.Statisticsstats-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<SystemRuptureSet.SystemSource>distanceFilter(Location loc, double distance)booleanequals(Object obj)List<Feature>features()The GeoJSON features for this rupture set.SystemRuptureSet.SystemSourceget(int index)GmmTreegmmTree()Return the ground motion model logic tree associated with thisRuptureSet.inthashCode()intid()The numeric ID of this rupture set.Iterable<T>iterableForLocation(Location loc)Return anIterableover thoseSources that are within the cutoff distance of the suppliedLocation.Iterable<T>iterableForLocation(Location loc, double distance)Return anIterableover thoseSources that are withindistanceof the suppliedLocation.Iterator<SystemRuptureSet.SystemSource>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()TheTectonicSettingidentifier.intsize()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 java.util.AbstractList
add, add, addAll, clear, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
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()
- Specified by:
sizein interfaceCollection<SystemRuptureSet.SystemSource>- Specified by:
sizein interfaceList<SystemRuptureSet.SystemSource>- Specified by:
sizein classAbstractCollection<SystemRuptureSet.SystemSource>
-
get
public SystemRuptureSet.SystemSource get(int index)
- Specified by:
getin interfaceList<SystemRuptureSet.SystemSource>- Specified by:
getin classAbstractList<SystemRuptureSet.SystemSource>
-
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.
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<SystemRuptureSet.SystemSource>- Specified by:
hashCodein interfaceList<SystemRuptureSet.SystemSource>- Overrides:
hashCodein classAbstractList<SystemRuptureSet.SystemSource>
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCollection<SystemRuptureSet.SystemSource>- Specified by:
equalsin interfaceList<SystemRuptureSet.SystemSource>- Overrides:
equalsin classAbstractList<SystemRuptureSet.SystemSource>
-
iterator
public Iterator<SystemRuptureSet.SystemSource> iterator()
- Specified by:
iteratorin interfaceCollection<SystemRuptureSet.SystemSource>- Specified by:
iteratorin interfaceIterable<SystemRuptureSet.SystemSource>- Specified by:
iteratorin interfaceList<SystemRuptureSet.SystemSource>- Overrides:
iteratorin classAbstractList<SystemRuptureSet.SystemSource>
-
distanceFilter
public Predicate<SystemRuptureSet.SystemSource> distanceFilter(Location loc, double distance)
Description copied from interface:RuptureSetReturn aPredicatethat evaluates totrueif this source is withindistanceof the suppliedLocation. ThisPredicateperforms a quick distance calculation and is used to determine whether this source should be included in a hazard calculation.- Parameters:
loc-Locationof interestdistance- limit
-
section
public GriddedSurface section(int index)
The fault section surface corresponding to the suppliedindex.This method exists because system source 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<T extends Source>
-
id
public int id()
Description copied from interface:RuptureSetThe numeric ID of this rupture set.- Specified by:
idin interfaceRuptureSet<T extends Source>
-
setting
public TectonicSetting setting()
Description copied from interface:RuptureSetTheTectonicSettingidentifier.- Specified by:
settingin interfaceRuptureSet<T extends Source>
-
type
public SourceType type()
Description copied from interface:RuptureSetTheSourceTypeidentifier.- Specified by:
typein interfaceRuptureSet<T extends Source>
-
gmmTree
public GmmTree gmmTree()
Description copied from interface:RuptureSetReturn the ground motion model logic tree associated with thisRuptureSet.- Specified by:
gmmTreein interfaceRuptureSet<T extends Source>
-
weight
public double weight()
Description copied from interface:RuptureSetThe weight of theSourceTreebranch to which this rupture set is attached.- Specified by:
weightin interfaceRuptureSet<T extends Source>
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<T extends Source>
-
iterableForLocation
public Iterable<T> iterableForLocation(Location loc)
Description copied from interface:RuptureSetReturn anIterableover thoseSources that are within the cutoff distance of the suppliedLocation. The cutoff distance is derived from theGroundMotionModels associated with thisRuptureSet.- Specified by:
iterableForLocationin interfaceRuptureSet<T extends Source>- Parameters:
loc-Locationof interest
-
iterableForLocation
public Iterable<T> iterableForLocation(Location loc, double distance)
Description copied from interface:RuptureSetReturn anIterableover thoseSources that are withindistanceof the suppliedLocation.- Specified by:
iterableForLocationin interfaceRuptureSet<T extends Source>- Parameters:
loc-Locationof interestdistance- limit
-
-