public class InterfaceSourceSet extends Object
InterfaceSources.InterfaceSource| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SourceSet<T> other) |
Predicate<InterfaceSource> |
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<InterfaceSource> |
iterator() |
String |
name()
Returns an object's display name.
|
int |
size()
The number of
Sources in this SourceSet. |
Source |
source(int id)
Return the source associated with the supplied id.
|
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 Source source(int id)
id - of source to retrievepublic Iterator<InterfaceSource> iterator()
public int size()
SourceSetSources in this SourceSet.public SourceType type()
SourceSetSourceType identifier.public Predicate<InterfaceSource> 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 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