Class Wall
- java.lang.Object
-
- org.noise_planet.noisemodelling.pathfinder.profilebuilder.Obstruction
-
- org.noise_planet.noisemodelling.pathfinder.profilebuilder.Wall
-
public class Wall extends Obstruction
-
-
Field Summary
Fields Modifier and Type Field Description double
height
Wall height, if -1, use z coordinate.org.locationtech.jts.geom.LineSegment
ls
int
originId
Id or index of the source building or topographic triangle.org.locationtech.jts.geom.Coordinate
p0
org.locationtech.jts.geom.Coordinate
p1
long
primaryKey
int
processedWallIndex
ProfileBuilder.IntersectionType
type
Type of the wall-
Fields inherited from class org.noise_planet.noisemodelling.pathfinder.profilebuilder.Obstruction
DEFAULT_G
-
-
Constructor Summary
Constructors Constructor Description Wall(org.locationtech.jts.geom.Coordinate p0, org.locationtech.jts.geom.Coordinate p1, int originId, ProfileBuilder.IntersectionType type)
Constructor using start/end point and id.Wall(org.locationtech.jts.geom.LineSegment line, int originId, ProfileBuilder.IntersectionType type)
Constructor using segment and id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHeight()
Retrieve the height of the wall.org.locationtech.jts.geom.LineSegment
getLineSegment()
int
getOriginId()
Retrieve the id or index of the source building or topographic triangle.int
getProcessedWallIndex()
ProfileBuilder.IntersectionType
getType()
void
setHeight(double height)
Sets the wall height.Wall
setPrimaryKey(long primaryKey)
Database primary key of this wall or the buildingWall
setProcessedWallIndex(int processedWallIndex)
-
Methods inherited from class org.noise_planet.noisemodelling.pathfinder.profilebuilder.Obstruction
copyAlphas, getAlphas, getG, initialize, setAlpha, setG
-
-
-
-
Field Detail
-
type
public final ProfileBuilder.IntersectionType type
Type of the wall
-
originId
public final int originId
Id or index of the source building or topographic triangle.
-
primaryKey
public long primaryKey
-
height
public double height
Wall height, if -1, use z coordinate.
-
p0
public org.locationtech.jts.geom.Coordinate p0
-
p1
public org.locationtech.jts.geom.Coordinate p1
-
ls
public org.locationtech.jts.geom.LineSegment ls
-
processedWallIndex
public int processedWallIndex
-
-
Constructor Detail
-
Wall
public Wall(org.locationtech.jts.geom.LineSegment line, int originId, ProfileBuilder.IntersectionType type)
Constructor using segment and id.- Parameters:
line
- Segment of the wall.originId
- Id or index of the source building or topographic triangle.
-
Wall
public Wall(org.locationtech.jts.geom.Coordinate p0, org.locationtech.jts.geom.Coordinate p1, int originId, ProfileBuilder.IntersectionType type)
Constructor using start/end point and id.- Parameters:
p0
- Start point of the segment.p1
- End point of the segment.originId
- Id or index of the source building or topographic triangle.
-
-
Method Detail
-
setPrimaryKey
public Wall setPrimaryKey(long primaryKey)
Database primary key of this wall or the building- Parameters:
primaryKey
- primary key value- Returns:
- this
-
getProcessedWallIndex
public int getProcessedWallIndex()
- Returns:
- Index of this wall in the ProfileBuild list
-
setProcessedWallIndex
public Wall setProcessedWallIndex(int processedWallIndex)
- Parameters:
processedWallIndex
- Index of this wall in the ProfileBuild list
-
setHeight
public void setHeight(double height)
Sets the wall height.- Parameters:
height
- Wall height.
-
getLineSegment
public org.locationtech.jts.geom.LineSegment getLineSegment()
-
getOriginId
public int getOriginId()
Retrieve the id or index of the source building or topographic triangle.- Returns:
- Id or index of the source building or topographic triangle.
-
getHeight
public double getHeight()
Retrieve the height of the wall.- Returns:
- Height of the wall.
-
getType
public ProfileBuilder.IntersectionType getType()
-
-