java.lang.Object
org.noise_planet.noisemodelling.pathfinder.profilebuilder.CutPoint
All Implemented Interfaces:
Cloneable, Comparable<CutPoint>
Direct Known Subclasses:
CutPointGroundEffect, CutPointReceiver, CutPointReflection, CutPointSource, CutPointTopography, CutPointVEdgeDiffraction, CutPointWall

public class CutPoint extends Object implements Comparable<CutPoint>, Cloneable
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 Details

    • 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 Details

    • 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 Details

    • clone

      public CutPoint clone()
      Overrides:
      clone in class Object
    • 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. z is the altitude of the point. (sea level = 0m)
    • 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 ground. (sea level = 0m)
      Returns:
      The topographic height of the ground. (sea level = 0m)
    • compareTo

      public int compareTo(CutPoint cutPoint)
      Specified by:
      compareTo in interface Comparable<CutPoint>
      Parameters:
      cutPoint - the object to be compared.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object