Class CutPoint
- java.lang.Object
-
- org.noise_planet.noisemodelling.pathfinder.profilebuilder.CutPoint
-
- All Implemented Interfaces:
Comparable<CutPoint>
- Direct Known Subclasses:
CutPointGroundEffect
,CutPointReceiver
,CutPointReflection
,CutPointSource
,CutPointTopography
,CutPointVEdgeDiffraction
,CutPointWall
public abstract class CutPoint extends Object implements Comparable<CutPoint>
On the vertical cut profile, this is one of the point This abstract class is implemented with specific attributes depending on the intersection object
-
-
Field Summary
Fields Modifier and Type Field Description org.locationtech.jts.geom.Coordinate
coordinate
Coordinate
of the cut point.double
groundCoefficient
Ground effect coefficient.double
zGround
Topographic height of the point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CutPoint cutPoint)
org.locationtech.jts.geom.Coordinate
getCoordinate()
Retrieve the coordinate of the point.double
getGroundCoefficient()
Retrieve the ground effect coefficient of the point.Double
getzGround()
Retrieve the topographic height of the point.void
setCoordinate(org.locationtech.jts.geom.Coordinate coordinate)
void
setGroundCoefficient(double groundCoefficient)
Sets the ground coefficient of this point.void
setZGround(double zGround)
Sets the topographic height.String
toString()
-
-
-
Field Detail
-
coordinate
public org.locationtech.jts.geom.Coordinate coordinate
Coordinate
of the cut point.
-
zGround
public double zGround
Topographic height of the point.
-
groundCoefficient
public double groundCoefficient
Ground effect coefficient. G=1.0 Soft, uncompacted ground (pasture, loose soil); snow etc G=0.7 Compacted soft ground (lawns, park areas): G=0.3 Compacted dense ground (gravel road, compacted soil): G=0.0 Hard surfaces (asphalt, concrete, top of buildings):
-
-
Constructor Detail
-
CutPoint
public CutPoint()
-
CutPoint
public CutPoint(org.locationtech.jts.geom.Coordinate coordinate)
-
CutPoint
public CutPoint(org.locationtech.jts.geom.Coordinate coordinate, double zGround, double groundCoefficient)
-
CutPoint
public CutPoint(CutPoint other)
Copy constructor- Parameters:
other
- Other instance to copy
-
-
Method Detail
-
setCoordinate
public void setCoordinate(org.locationtech.jts.geom.Coordinate coordinate)
-
setGroundCoefficient
public void setGroundCoefficient(double groundCoefficient)
Sets the ground coefficient of this point.- Parameters:
groundCoefficient
- The ground coefficient of this point.
-
setZGround
public void setZGround(double zGround)
Sets the topographic height.- Parameters:
zGround
- The topographic height.
-
getCoordinate
public org.locationtech.jts.geom.Coordinate getCoordinate()
Retrieve the coordinate of the point.- Returns:
- The coordinate of the point.
-
getGroundCoefficient
public double getGroundCoefficient()
Retrieve the ground effect coefficient of the point. If there is no coefficient, returns 0.- Returns:
- Ground effect coefficient or NaN.
-
getzGround
public Double getzGround()
Retrieve the topographic height of the point.- Returns:
- The topographic height of the point.
-
compareTo
public int compareTo(CutPoint cutPoint)
- Specified by:
compareTo
in interfaceComparable<CutPoint>
- Parameters:
cutPoint
- the object to be compared.- Returns:
-
-