|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.faultSurface.PointSurface
public class PointSurface
Title: PointSurface
Description: This is a special case of RuptureSurface that is a point surface (has only one Location).
This class has been modified to have threadsafe distance methods that are not synchronized like those of the finite fault sources. A PointSurface should only be used with a threadsafe EqkRupture; users should ensure that new surfaces or parent ruptures are being created for each calculation loop and each calculator.
| Field Summary | |
|---|---|
protected double |
aveDip
The average dip of this surface into the Earth. |
protected double |
aveStrike
The average strike of this surface on the Earth. |
protected String |
name
The name of this point source. |
| Constructor Summary | |
|---|---|
PointSurface(double lat,
double lon,
double depth)
Constructor for the PointSurface object. |
|
PointSurface(Location loc)
Constructor for the PointSurface object. |
|
| Method Summary | |
|---|---|
double |
getArea()
This returns the surface area in km-sq |
double |
getAveDip()
Returns the average dip of this surface into the Earth. |
double |
getAveDipDirection()
Average dip direction (degrees) of rupture surface |
double |
getAveGridSpacing()
This returns the average grid spacing used to define the discretization used in what's returned by the methods here that contain "Discretized" in their names. |
double |
getAveLength()
This returns the average length of the surface in km |
double |
getAveRupTopDepth()
Average depth (km) to top of rupture (always a positive number) |
double |
getAveStrike()
Returns the average strike of this surface on the Earth. |
double |
getAveWidth()
Average down-dip width (km) of rupture surface |
double |
getDepth()
|
double |
getDistanceJB(Location siteLoc)
This returns distance JB (shortest horz distance in km to surface projection of rupture), assuming the location has zero depth (for numerical expediency). |
double |
getDistanceRup(Location siteLoc)
This sets the three propagation distances (distanceJB, distanceRup, & distanceSeis) |
double |
getDistanceSeis(Location siteLoc)
This returns "distance seis" (shortest distance in km to point on rupture deeper than 3 km), assuming the location has zero depth (for numerical expediency). |
double |
getDistanceX(Location siteLoc)
This returns distance X (the shortest distance in km to the rupture trace extended to infinity), where values >= 0 are on the hanging wall and values < 0 are on the foot wall. |
LocationList |
getEvenlyDiscritizedListOfLocsOnSurface()
This returns a list of locations that are evenly spread (at least approximately) over the rupture surface, with a spacing given by what's returned by the getGridSpacing() method. |
LocationList |
getEvenlyDiscritizedPerimeter()
This returns a list of locations that are evenly spread (at least approximately) over the surface perimeter, with a spacing given by what's returned by the getGridSpacing() method. |
FaultTrace |
getEvenlyDiscritizedUpperEdge()
This returns a list of locations that are evenly spread along the upper edge of the surface. |
Location |
getFirstLocOnUpperEdge()
This returns the first location on the upper edge of the surface |
double |
getFractionOfSurfaceInRegion(Region region)
The is returns the fraction of this rupture surface that's inside the given region. |
String |
getInfo()
This is a string giving brief info about the surface (e.g., used in GUIs) |
Location |
getLastLocOnUpperEdge()
This returns the last location on the upper edge of the surface |
Location |
getLocation()
Gets the location for this point source. |
ListIterator<Location> |
getLocationsIterator()
This returns what's given by getEvenlyDiscritizedListOfLocsOnSurface() as an interator |
double |
getMinDistance(RuptureSurface surface)
This returns the minimum distance as the minimum among all location pairs between the two surfaces |
String |
getName()
Gets the name of this PointSource. |
LocationList |
getPerimeter()
Get a list of locations that constitutes the perimeter of the surface (not necessarily evenly spaced) |
String |
getSurfaceMetadata()
Returns the Surface Metadata with the following info: AveDip Surface length Surface DownDipWidth GridSpacing NumRows NumCols Number of locations on surface |
FaultTrace |
getUpperEdge()
This returns the upper edge of the rupture surface (where the locations are not necessarily equally spaced). |
boolean |
isPointSurface()
This indicates whether this is a point surface |
static void |
main(String[] args)
|
void |
setAveDip(double aveDip)
Sets the average dip of this surface into the Earth. |
void |
setAveStrike(double aveStrike)
Sets the average strike of this surface on the Earth. |
void |
setDepth(double depth)
|
void |
setDistCorrMagAndType(double mag,
PtSrcDistCorr.Type type)
This sets the magnitude and type for the point-source distance corrections |
void |
setLocation(Location location)
Since this is a point source, the single Location can be set without indexes. |
void |
setName(String name)
Sets the name of this PointSource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double aveStrike
protected double aveDip
protected String name
| Constructor Detail |
|---|
public PointSurface(double lat,
double lon,
double depth)
lat - latitude for the Location of this point source.lon - longitude for the Location of this point source.depth - depth below the earth for the Location of this point source.public PointSurface(Location loc)
loc - the Location object for this point source.| Method Detail |
|---|
public void setAveStrike(double aveStrike)
throws InvalidRangeException
InvalidRangeExceptionpublic double getAveStrike()
getAveStrike in interface RuptureSurface
public void setAveDip(double aveDip)
throws InvalidRangeException
InvalidRangeExceptionpublic double getAveDip()
getAveDip in interface RuptureSurfacepublic void setLocation(Location location)
public double getDepth()
public void setDepth(double depth)
public Location getLocation()
public void setName(String name)
public String getName()
public String getSurfaceMetadata()
Each of these elements are represented in Single line with tab("\t") delimitation.
Then follows the location of each point on the surface with the comment String
defining how locations are represented.
Then until surface locations are done each line is the point location on the surface.
public double getAveDipDirection()
RuptureSurface
getAveDipDirection in interface RuptureSurfacepublic double getAveRupTopDepth()
RuptureSurface
getAveRupTopDepth in interface RuptureSurfacepublic LocationList getPerimeter()
RuptureSurface
getPerimeter in interface RuptureSurfacepublic FaultTrace getUpperEdge()
RuptureSurface
getUpperEdge in interface RuptureSurface
public void setDistCorrMagAndType(double mag,
PtSrcDistCorr.Type type)
mag - type - public double getDistanceRup(Location siteLoc)
getDistanceRup in interface RuptureSurfacesiteLoc -
public double getDistanceJB(Location siteLoc)
RuptureSurface
getDistanceJB in interface RuptureSurfacepublic double getDistanceSeis(Location siteLoc)
RuptureSurface
getDistanceSeis in interface RuptureSurfacepublic double getDistanceX(Location siteLoc)
getDistanceX in interface RuptureSurfacepublic String getInfo()
RuptureSurface
getInfo in interface RuptureSurfacepublic boolean isPointSurface()
RuptureSurface
isPointSurface in interface RuptureSurfacepublic double getArea()
RuptureSurface
getArea in interface RuptureSurfacepublic double getAveGridSpacing()
RuptureSurface
getAveGridSpacing in interface RuptureSurfacepublic double getAveLength()
RuptureSurface
getAveLength in interface RuptureSurfacepublic double getAveWidth()
RuptureSurface
getAveWidth in interface RuptureSurfacepublic LocationList getEvenlyDiscritizedListOfLocsOnSurface()
RuptureSurface
getEvenlyDiscritizedListOfLocsOnSurface in interface RuptureSurfacepublic LocationList getEvenlyDiscritizedPerimeter()
RuptureSurface
getEvenlyDiscritizedPerimeter in interface RuptureSurfacepublic FaultTrace getEvenlyDiscritizedUpperEdge()
RuptureSurface
getEvenlyDiscritizedUpperEdge in interface RuptureSurfacepublic Location getFirstLocOnUpperEdge()
RuptureSurface
getFirstLocOnUpperEdge in interface RuptureSurfacepublic Location getLastLocOnUpperEdge()
RuptureSurface
getLastLocOnUpperEdge in interface RuptureSurfacepublic double getFractionOfSurfaceInRegion(Region region)
RuptureSurface
getFractionOfSurfaceInRegion in interface RuptureSurfacepublic ListIterator<Location> getLocationsIterator()
RuptureSurface
getLocationsIterator in interface RuptureSurfacepublic double getMinDistance(RuptureSurface surface)
getMinDistance in interface RuptureSurfacesurface - RuptureSurface
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||