Class SceneWithEmission
- java.lang.Object
-
- org.noise_planet.noisemodelling.pathfinder.path.Scene
-
- org.noise_planet.noisemodelling.propagation.SceneWithAttenuation
-
- org.noise_planet.noisemodelling.jdbc.input.SceneWithEmission
-
public class SceneWithEmission extends SceneWithAttenuation
Add emission information for each source in the computation scene This is input data, not thread safe, never update anything here during propagation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SceneWithEmission.PeriodEmission
-
Field Summary
Fields Modifier and Type Field Description SceneDatabaseInputSettings
sceneDatabaseInputSettings
Map<Long,ArrayList<SceneWithEmission.PeriodEmission>>
wjSources
-
Fields inherited from class org.noise_planet.noisemodelling.propagation.SceneWithAttenuation
cnossosParametersPerPeriod, DEFAULT_GS, defaultCnossosParameters, directionAttributes, periodSet, sourceEmissionAttenuation, sourceFieldNames, sourceGs
-
Fields 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, maxRefDist, maxSrcDist, PITCH_DATABASE_FIELD, profileBuilder, receivers, receiversPk, reflexionOrder, ROLL_DATABASE_FIELD, sourceGeometries, sourceOrientation, sourcesIndex, sourcesPk, YAW_DATABASE_FIELD
-
-
Constructor Summary
Constructors Constructor Description SceneWithEmission()
SceneWithEmission(ProfileBuilder profileBuilder)
SceneWithEmission(ProfileBuilder profileBuilder, SceneDatabaseInputSettings sceneDatabaseInputSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSource(Long pk, org.locationtech.jts.geom.Geometry geom, org.h2gis.utilities.SpatialResultSet rs)
Add geometry with additional attributesvoid
addSourceEmission(Long sourcePrimaryKey, String period, double[] wj)
Link a source with a period and a spectrumvoid
addSourceEmission(Long pk, ResultSet rs)
void
clearSources()
void
processEmission(Long pk, ResultSet rs)
void
processTrafficFlow(Long pk, ResultSet rs)
void
processTrafficFlowDEN(Long pk, org.h2gis.utilities.SpatialResultSet rs)
-
Methods inherited from class org.noise_planet.noisemodelling.propagation.SceneWithAttenuation
addSource, getSourceAttenuation, getSourceGs, isOmnidirectional, setDirectionAttributes
-
Methods inherited from class org.noise_planet.noisemodelling.pathfinder.path.Scene
addReceiver, addReceiver, addReceiver, addSource, addSource, addSource, getReflexionOrder, isBodyBarrier, setBodyBarrier, setComputeHorizontalDiffraction, setComputeVerticalDiffraction, setDefaultGroundAttenuation, setReflexionOrder, setSources
-
-
-
-
Field Detail
-
wjSources
public Map<Long,ArrayList<SceneWithEmission.PeriodEmission>> wjSources
-
sceneDatabaseInputSettings
public SceneDatabaseInputSettings sceneDatabaseInputSettings
-
-
Constructor Detail
-
SceneWithEmission
public SceneWithEmission(ProfileBuilder profileBuilder, SceneDatabaseInputSettings sceneDatabaseInputSettings)
-
SceneWithEmission
public SceneWithEmission(ProfileBuilder profileBuilder)
-
SceneWithEmission
public SceneWithEmission()
-
-
Method Detail
-
processTrafficFlowDEN
public void processTrafficFlowDEN(Long pk, org.h2gis.utilities.SpatialResultSet rs) throws SQLException
- Throws:
SQLException
-
processTrafficFlow
public void processTrafficFlow(Long pk, ResultSet rs) throws SQLException
- Parameters:
pk
- Source primary keyrs
- Emission source table IDSOURCE, PERIOD, LV, HV ..- Throws:
SQLException
-
processEmission
public void processEmission(Long pk, ResultSet rs) throws SQLException
- Parameters:
pk
- Source primary keyrs
- Emission source table IDSOURCE, PERIOD, LV, HV ..- Throws:
SQLException
-
addSource
public void addSource(Long pk, org.locationtech.jts.geom.Geometry geom, org.h2gis.utilities.SpatialResultSet rs) throws SQLException
Description copied from class:SceneWithAttenuation
Add geometry with additional attributes- Overrides:
addSource
in classSceneWithAttenuation
- Parameters:
pk
- Unique source identifiergeom
- Source geometryrs
- Additional attributes fetched from database- Throws:
SQLException
-
addSourceEmission
public void addSourceEmission(Long pk, ResultSet rs) throws SQLException
- Throws:
SQLException
-
addSourceEmission
public void addSourceEmission(Long sourcePrimaryKey, String period, double[] wj)
Link a source with a period and a spectrum- Parameters:
sourcePrimaryKey
-period
-wj
-
-
clearSources
public void clearSources()
- Overrides:
clearSources
in classSceneWithAttenuation
-
-