public final class SystemSourceSet extends Object
SystemSourceSet.SystemSources.| Modifier and Type | Class and Description |
|---|---|
static class |
SystemSourceSet.Statistics
Container of summary data for this sytem source set.
|
class |
SystemSourceSet.SystemSource
A single source in a fault system.
|
| Modifier and Type | Field and Description |
|---|---|
SystemSourceSet.Statistics |
stats |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SourceSet<T> other) |
Predicate<SystemSourceSet.SystemSource> |
distanceFilter(Location loc,
double distance)
|
GmmSet |
groundMotionModels()
|
int |
id()
A unique integer id.
|
Iterable<T> |
iterableForLocation(Location loc)
Return an
Iterable over those Sources that are within the
cutoff distance of the supplied Location. |
Iterable<T> |
iterableForLocation(Location loc,
double distance)
Return an
Iterable over those Sources that are within
distance of the supplied Location. |
Iterator<SystemSourceSet.SystemSource> |
iterator() |
String |
name()
Returns an object's display name.
|
GriddedSurface |
section(int index)
The fault section surface corresponding to the supplied
index. |
String |
sectionName(int index)
The name of the fault section corresponding to the supplied
index. |
int |
size()
The number of
Sources in this SourceSet. |
static Function<SystemSourceSet,InputList> |
toInputsFunction(Site site)
Return an instance of a
Function that converts a
SystemSourceSet to a ground motion model InputList. |
static Function<SystemSourceSet,IntervalArray> |
toRatesFunction(Location location,
double distance,
IntervalArray modelMfd)
Return an instance of a
Function that converts a
SystemSourceSet to a ground motion model InputList. |
String |
toString() |
SourceType |
type()
The
SourceType identifier. |
double |
weight()
The weight applicable to this
SourceSet. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic final SystemSourceSet.Statistics stats
public SourceType type()
SourceSetSourceType identifier.public int size()
SourceSetSources in this SourceSet.public Iterator<SystemSourceSet.SystemSource> iterator()
public Predicate<SystemSourceSet.SystemSource> distanceFilter(Location loc, double distance)
SourceSetPredicate that evaluates to true if this source is
within distance of the supplied Location. This
Predicate performs a quick distance calculation and is used to
determine whether this source should be included in a hazard calculation.loc - Location of interestdistance - limitpublic GriddedSurface section(int index)
index.
This method exists because system source sets are complex and commonly encapsulate 100K+ sources. The results of a hazard calculation and deaggregation are therefore better represented in the context of individual fault sections, rather than on a per-source basis.
index - of fault section surface to retrievepublic String sectionName(int index)
index.index - of fault section name to retrievepublic static Function<SystemSourceSet,IntervalArray> toRatesFunction(Location location, double distance, IntervalArray modelMfd)
Function that converts a
SystemSourceSet to a ground motion model InputList.location - with which to initialize instance.distance - if interest (relevant source radius)modelMfd - MFD to populatepublic static Function<SystemSourceSet,InputList> toInputsFunction(Site site)
Function that converts a
SystemSourceSet to a ground motion model InputList.site - with which to initialize instance.public int compareTo(SourceSet<T> other)
compareTo in interface Comparable<SourceSet<T extends Source>>public String name()
Namedpublic int id()
SourceSetpublic double weight()
SourceSetSourceSet.public GmmSet groundMotionModels()
SourceSetgroundMotionModels in interface SourceSet<T extends Source>GmmSetpublic Iterable<T> iterableForLocation(Location loc)
SourceSetIterable over those Sources that are within the
cutoff distance of the supplied Location. The cutoff distance is
derived from the GroundMotionModels associated with this
SourceSet.iterableForLocation in interface SourceSet<T extends Source>loc - Location of interestpublic Iterable<T> iterableForLocation(Location loc, double distance)
SourceSetIterable over those Sources that are within
distance of the supplied Location.iterableForLocation in interface SourceSet<T extends Source>loc - Location of interestdistance - limit