public interface SourceSet<T extends Source> extends Named, Iterable<T>, Comparable<SourceSet<T>>
Sources of similar SourceType.
The use of the word 'Set' in the class name implies the Sources in a
SourceSet will be unique, but no steps are taken to enforce this.| Modifier and Type | Method and Description |
|---|---|
Predicate<T> |
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. |
int |
size()
The number of
Sources in this SourceSet. |
SourceType |
type()
The
SourceType identifier. |
double |
weight()
The weight applicable to this
SourceSet. |
forEach, iterator, spliteratorcompareToint id()
SourceType type()
SourceType identifier.int size()
Sources in this SourceSet.double weight()
SourceSet.Iterable<T> iterableForLocation(Location loc)
Iterable 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.loc - Location of interestIterable<T> iterableForLocation(Location loc, double distance)
Iterable over those Sources that are within
distance of the supplied Location.loc - Location of interestdistance - limitPredicate<T> distanceFilter(Location loc, double distance)
Predicate 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 - limit