public class GridSourceSet extends Object
PointSources with
varying magnitudes and/or rates derived from an IncrementalMfd at
each grid node.| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SourceSet<T> other) |
Predicate<gov.usgs.earthquake.nshmp.eq.model.PointSource> |
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<gov.usgs.earthquake.nshmp.eq.model.PointSource> |
iterator() |
String |
name()
Returns an object's display name.
|
boolean |
optimizable()
Whether this source set is capable of being optimized.
|
static Function<GridSourceSet,SourceSet<? extends Source>> |
optimizer(Location loc)
Create a
Function for a location the condenses a
GridSourceSet into tabular form (distance, magnitude and azimuth
bins) for speedier iteration. |
int |
size()
The number of
Sources in this SourceSet. |
static String |
sizeString(SourceSet<? extends Source> sourceSet,
int size)
For internal use only.
|
PointSourceType |
sourceType()
The
PointSource representation used by this source set. |
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 SourceType type()
SourceSetSourceType identifier.public PointSourceType sourceType()
PointSource representation used by this source set.public boolean optimizable()
public int size()
SourceSetSources in this SourceSet.public static String sizeString(SourceSet<? extends Source> sourceSet, int size)
public Predicate<gov.usgs.earthquake.nshmp.eq.model.PointSource> 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 Iterator<gov.usgs.earthquake.nshmp.eq.model.PointSource> iterator()
public static Function<GridSourceSet,SourceSet<? extends Source>> optimizer(Location loc)
Function for a location the condenses a
GridSourceSet into tabular form (distance, magnitude and azimuth
bins) for speedier iteration.loc - reference point for tablepublic 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