Class SceneWithAttenuation
java.lang.Object
org.noise_planet.noisemodelling.pathfinder.path.Scene
org.noise_planet.noisemodelling.propagation.SceneWithAttenuation
- Direct Known Subclasses:
SceneWithEmission
Scene is used by ProfileBuilder to construct profiles with only taking account of geometry information.
This scene is adding information about attenuation and source power
-
Field Summary
FieldsModifier and TypeFieldDescriptionDefine attenuation settings to apply for each periodstatic final doubleIfcnossosParametersPerPeriodis empty, attenuation visitor will use this default settings and output empty periodAttenuation and other attributes relative to direction on sphereKeep a known set of all periods of the simulation This set is used to output a default value when there is no sound source found for a specific periodLink between sources PK and DirectivitySphere specified in linked with directionAttributesCached source table fieldsLink between sources PK and gs ground factor of the source areaFields inherited from class org.noise_planet.noisemodelling.pathfinder.path.Scene
computeHorizontalDiffraction, computeVerticalDiffraction, DEFAULT_G, DEFAULT_G_BUILDING, DEFAULT_MAX_PROPAGATION_DISTANCE, DEFAULT_MAXIMUM_REF_DIST, DEFAULT_RECEIVER_DIST, defaultGroundAttenuation, DIRECTIVITY_DATABASE_FIELD, GS_DATABASE_FIELD, lineSourceSpacingRatio, maxRefDist, maxSrcDist, PITCH_DATABASE_FIELD, profileBuilder, receivers, receiversPk, reflexionOrder, ROLL_DATABASE_FIELD, sourceGeometries, sourceOrientation, sourcesIndex, sourcesPk, YAW_DATABASE_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd geometry with additional attributesvoidaddSource(Long pk, org.locationtech.jts.geom.Geometry geom, org.h2gis.utilities.SpatialResultSet rs) Add geometry with additional attributesvoiddouble[]getSourceAttenuation(int srcIndex, double[] frequencies, double phi, double theta) doublegetSourceGs(int srcIndex) Retrieves the ground speed of the noise source at the specified index.booleanisOmnidirectional(int srcIndex) Checks if the noise source at the specified index is omnidirectional.voidsetDirectionAttributes(Map<Integer, DirectivitySphere> directionAttributes) Sets the direction attributes for the receiver.Methods inherited from class org.noise_planet.noisemodelling.pathfinder.path.Scene
addReceiver, addReceiver, addReceiver, addSource, addSource, addSource, getCloseReceiverReflectionWallDistance, getReflexionOrder, isBodyBarrier, setBodyBarrier, setCloseReceiverReflectionWallDistance, setComputeHorizontalDiffraction, setComputeVerticalDiffraction, setDefaultGroundAttenuation, setReflexionOrder
-
Field Details
-
DEFAULT_GS
public static final double DEFAULT_GS- See Also:
-
directionAttributes
Attenuation and other attributes relative to direction on sphere -
sourceEmissionAttenuation
Link between sources PK and DirectivitySphere specified in linked with directionAttributes -
sourceGs
Link between sources PK and gs ground factor of the source area -
sourceFieldNames
Cached source table fields -
defaultCnossosParameters
IfcnossosParametersPerPeriodis empty, attenuation visitor will use this default settings and output empty period -
cnossosParametersPerPeriod
Define attenuation settings to apply for each period -
periodSet
Keep a known set of all periods of the simulation This set is used to output a default value when there is no sound source found for a specific period
-
-
Constructor Details
-
SceneWithAttenuation
-
SceneWithAttenuation
public SceneWithAttenuation()
-
-
Method Details
-
getSourceGs
public double getSourceGs(int srcIndex) Retrieves the ground speed of the noise source at the specified index.- Parameters:
srcIndex-- Returns:
- the ground speed of the noise source at the specified index.
-
addSource
Add geometry with additional attributes- Parameters:
pk- Unique source identifiergeom- Source geometrygs- Additional attributes
-
setDirectionAttributes
Sets the direction attributes for the receiver.- Parameters:
directionAttributes-
-
addSource
public void addSource(Long pk, org.locationtech.jts.geom.Geometry geom, org.h2gis.utilities.SpatialResultSet rs) throws SQLException Add geometry with additional attributes- Parameters:
pk- Unique source identifiergeom- Source geometryrs- Additional attributes fetched from database- Throws:
SQLException
-
isOmnidirectional
public boolean isOmnidirectional(int srcIndex) Checks if the noise source at the specified index is omnidirectional.- Parameters:
srcIndex- Source index in the list sourceGeometries- Returns:
- True if the source is omnidirectional and so does not have orientation dependant attenuation, false otherwise.
-
getSourceAttenuation
public double[] getSourceAttenuation(int srcIndex, double[] frequencies, double phi, double theta) - Parameters:
srcIndex- Source index in the list sourceGeometriesfrequencies- Frequency in Hertzphi- (0 2π) 0 is fronttheta- (-π/2 π/2) 0 is horizontal π is top- Returns:
-
clearSources
public void clearSources()- Overrides:
clearSourcesin classScene
-