public final class SlabSourceSet extends Object implements SourceSet<gov.usgs.earthquake.nshmp.eq.model.PointSource>
GridSourceSet.GridSourceSet| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SourceSet<gov.usgs.earthquake.nshmp.eq.model.PointSource> other) |
Predicate<gov.usgs.earthquake.nshmp.eq.model.PointSource> |
distanceFilter(Location loc,
double distance)
|
GmmSet |
groundMotionModels()
|
int |
id()
A unique integer id.
|
Iterable<gov.usgs.earthquake.nshmp.eq.model.PointSource> |
iterableForLocation(Location loc)
Return an
Iterable over those Sources that are within the
cutoff distance of the supplied Location. |
Iterable<gov.usgs.earthquake.nshmp.eq.model.PointSource> |
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.
|
int |
size()
The number of
Sources in this SourceSet. |
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 int compareTo(SourceSet<gov.usgs.earthquake.nshmp.eq.model.PointSource> other)
compareTo in interface Comparable<SourceSet<gov.usgs.earthquake.nshmp.eq.model.PointSource>>public final String name()
Namedpublic int id()
SourceSetpublic final Iterator<gov.usgs.earthquake.nshmp.eq.model.PointSource> iterator()
public final SourceType type()
SourceSetSourceType identifier.public final int size()
SourceSetSources in this SourceSet.public final double weight()
SourceSetSourceSet.public final Iterable<gov.usgs.earthquake.nshmp.eq.model.PointSource> 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<gov.usgs.earthquake.nshmp.eq.model.PointSource>loc - Location of interestpublic final Iterable<gov.usgs.earthquake.nshmp.eq.model.PointSource> iterableForLocation(Location loc, double distance)
SourceSetIterable over those Sources that are within
distance of the supplied Location.iterableForLocation in interface SourceSet<gov.usgs.earthquake.nshmp.eq.model.PointSource>loc - Location of interestdistance - limitpublic final GmmSet groundMotionModels()
SourceSetgroundMotionModels in interface SourceSet<gov.usgs.earthquake.nshmp.eq.model.PointSource>GmmSetpublic final 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.distanceFilter in interface SourceSet<gov.usgs.earthquake.nshmp.eq.model.PointSource>loc - Location of interestdistance - limit