Package gov.usgs.earthquake.nshmp.model
Class GriddedRuptureSet
java.lang.Object
gov.usgs.earthquake.nshmp.model.GriddedRuptureSet
- All Implemented Interfaces:
RuptureSet,Iterable<GridSource>
- Direct Known Subclasses:
GridRuptureSet
Base implementation for gridded rupture sets. Although most implementations
in USGS NSHMs to date are uniformely spaced in latitude and longitude, this
class makes no requirement that they be.
- Author:
- U.S. Geological Survey
-
Method Summary
Modifier and TypeMethodDescriptionabstract GridSourcegetNode(int index) Get the grid source at the specified node.gmmTree()Return the ground motion model logic tree associated with this Rupture Set.intid()The numeric ID of this rupture set.iterator()The list of grid node locations in this rupture set.name()The display name of the rupture set.setting()TheTectonicSettingof this rupture set.siteIterable(Location site) Returns an iterable over the grid sources within the cuttoff distance from asite.siteIterable(Location site, double distance) Returns an iterable over the grid sources within the specifieddistancefrom asite.intsize()The number of grid nodes in this rupture set.toString()type()TheSourceTypeidentifier.doubleweight()The weight of theSourceTreebranch to which this rupture set is attached.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface gov.usgs.earthquake.nshmp.model.RuptureSet
features, location, mfdTree, totalMfd
-
Method Details
-
size
public int size()The number of grid nodes in this rupture set.- Specified by:
sizein interfaceRuptureSet
-
locations
The list of grid node locations in this rupture set. -
getNode
Get the grid source at the specified node.- Parameters:
index- of the node to retrieve
-
iterator
- Specified by:
iteratorin interfaceIterable<GridSource>
-
siteIterable
Returns an iterable over the grid sources within the cuttoff distance from asite. The cutoff distance is derived from theGroundMotionModels associated with this rupture set.- Parameters:
site- of interest- See Also:
-
siteIterable
Returns an iterable over the grid sources within the specifieddistancefrom asite.- Parameters:
site- of interestdistance- from the site within which grid sources are returned by this iterator
-
name
Description copied from interface:RuptureSetThe display name of the rupture set.- Specified by:
namein interfaceRuptureSet
-
id
public int id()Description copied from interface:RuptureSetThe numeric ID of this rupture set.- Specified by:
idin interfaceRuptureSet
-
setting
Description copied from interface:RuptureSetTheTectonicSettingof this rupture set.- Specified by:
settingin interfaceRuptureSet
-
type
Description copied from interface:RuptureSetTheSourceTypeidentifier.- Specified by:
typein interfaceRuptureSet
-
gmmTree
Description copied from interface:RuptureSetReturn the ground motion model logic tree associated with this Rupture Set.- Specified by:
gmmTreein interfaceRuptureSet
-
weight
public double weight()Description copied from interface:RuptureSetThe weight of theSourceTreebranch to which this rupture set is attached.- Specified by:
weightin interfaceRuptureSet
-
toString
-