Class Building
- java.lang.Object
-
- org.noise_planet.noisemodelling.pathfinder.profilebuilder.Obstruction
-
- org.noise_planet.noisemodelling.pathfinder.profilebuilder.Building
-
public class Building extends Obstruction
-
-
Field Summary
-
Fields inherited from class org.noise_planet.noisemodelling.pathfinder.profilebuilder.Obstruction
DEFAULT_G
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.jts.geom.PolygongetGeometry()Retrieve the building footprint.doublegetHeight()get Height from BuildinglonggetPrimaryKey()Retrieve the primary key of the building in the database.Collection<? extends Wall>getWalls()doublegetZ()voidpoly2D_3D()voidsetWalls(List<Wall> walls)doubleupdateZTopo(ProfileBuilder profileBuilder)Compute minimum Z ground under the building contour-
Methods inherited from class org.noise_planet.noisemodelling.pathfinder.profilebuilder.Obstruction
copyAlphas, getAlphas, getG, initialize, setAlpha, setG
-
-
-
-
Constructor Detail
-
Building
public Building(org.locationtech.jts.geom.Polygon geometry, double height, double g, long pk, boolean zBuildings)
-
Building
public Building(org.locationtech.jts.geom.Polygon poly, double height, List<Double> alphas, long key, boolean zBuildings)Main constructor.- Parameters:
poly-Geometryfootprint of the building.height- Height of the building.alphas- Absorption coefficients.key- Primary key of the building in the database.
-
-
Method Detail
-
poly2D_3D
public void poly2D_3D()
-
getHeight
public double getHeight()
get Height from Building- Returns:
- height
-
getGeometry
public org.locationtech.jts.geom.Polygon getGeometry()
Retrieve the building footprint.- Returns:
- The building footprint.
-
getPrimaryKey
public long getPrimaryKey()
Retrieve the primary key of the building in the database. If there is no primary key, returns -1.- Returns:
- The primary key of the building in the database or -1.
-
updateZTopo
public double updateZTopo(ProfileBuilder profileBuilder)
Compute minimum Z ground under the building contour- Parameters:
profileBuilder-- Returns:
-
getZ
public double getZ()
-
getWalls
public Collection<? extends Wall> getWalls()
-
-