Package gov.sandia.gnem.slbmjni
Class QueryNeighborInfo
java.lang.Object
gov.sandia.gnem.slbmjni.QueryNeighborInfo
public class QueryNeighborInfo
extends java.lang.Object
Stores information related to an interpolated profile through the Earth model.
The information is retrieved from a C++
QueryProfile
object via a call to
SlbmInterface.getInterpolatedPoint(double, double)
.
Information includes: the geographic latitude and
longitude of the point in the Earth model where the information was
interpolated, the depths of all model interfaces beneath the point
of interpolation, the P and S velocities of each model interval,
and the P and S velocity gradients in the mantle. Also includes the
node IDs and interpolation coefficients used to interpolate the
information from the grid nodes.-
Field Summary
Fields Modifier and Type Field Description double[]
azimuth
An array of azimuths between nid and neighbors of niddouble[]
distance
An array of distances between nid and neighbors of nidint[]
neighbors
The node IDs of neighbors of nid.int
nid
Node ID of interest.int
nNeighbors
The number of neighbors nid has -
Constructor Summary
Constructors Constructor Description QueryNeighborInfo()
-
Method Summary
Modifier and Type Method Description int
getNNeighbors()
Rjava.lang.String
toString()
Retrieve a formatted String representation of the information in this QueryNeighborInfo object.
-
Field Details
-
nid
public int nidNode ID of interest. -
neighbors
public int[] neighborsThe node IDs of neighbors of nid. -
distance
public double[] distanceAn array of distances between nid and neighbors of nid -
azimuth
public double[] azimuthAn array of azimuths between nid and neighbors of nid -
nNeighbors
public int nNeighborsThe number of neighbors nid has
-
-
Constructor Details
-
QueryNeighborInfo
public QueryNeighborInfo()
-
-
Method Details
-
getNNeighbors
public int getNNeighbors()R- Returns:
- int the number of neighbors
-
toString
public java.lang.String toString()Retrieve a formatted String representation of the information in this QueryNeighborInfo object.- Overrides:
toString
in classjava.lang.Object
- Returns:
- String a formatted String representation of the information in this QueryNeighborInfo object.
-