Class TemplatePropagationModel
java.lang.Object
org.noise_planet.noisemodelling.propagation.template.TemplatePropagationModel
- All Implemented Interfaces:
PropagationModel
Template of propagation model. To be used as a basis
for new P2P model implementation.
- Author:
- Martin Glesser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<double[]> computeAttenuation(SceneWithAttenuation scene, CutProfile cutProfile, List<CnossosPath> paths, AttenuationParameters attenuationParameters, boolean isExportAttenuationMatrix) Compute the attenuation for a given cut-profiledouble[]computeDirectAttenuation(PathFinder.SourcePointInfo source, PathFinder.ReceiverPointInfo receiver, SceneWithAttenuation scene, AttenuationParameters attenuationParameters, boolean isExportAttenuationMatrix) Compute attenuation along direct path between source and receivercomputePaths(SceneWithAttenuation scene, CutProfile cutProfile) Compute the propagation paths for a given geometrical cross-section / cut profile (Specific to Cnossos propagation model, will be removed after pathFinder module refacto)
-
Constructor Details
-
TemplatePropagationModel
public TemplatePropagationModel()Constructor for TemplatePropagationModel objects
-
-
Method Details
-
computeAttenuation
public List<double[]> computeAttenuation(SceneWithAttenuation scene, CutProfile cutProfile, List<CnossosPath> paths, AttenuationParameters attenuationParameters, boolean isExportAttenuationMatrix) Compute the attenuation for a given cut-profile- Specified by:
computeAttenuationin interfacePropagationModel- Parameters:
scene- Geometrical information about the propagation scenecutProfile- Geometrical cross-sectionpaths- List of propagation paths (Cnossos specific)attenuationParameters- parameters of the computationisExportAttenuationMatrix- if true, store intermediate values in proPathParameters for debugging purpose- Returns:
- Attenuation for the homogeneous and favourable path
-
computeDirectAttenuation
public double[] computeDirectAttenuation(PathFinder.SourcePointInfo source, PathFinder.ReceiverPointInfo receiver, SceneWithAttenuation scene, AttenuationParameters attenuationParameters, boolean isExportAttenuationMatrix) Compute attenuation along direct path between source and receiver- Specified by:
computeDirectAttenuationin interfacePropagationModel- Parameters:
source- source point informationreceiver- receiver point informationscene- Geometrical information about the propagation sceneattenuationParameters- parameters of the computationisExportAttenuationMatrix- if true, store intermediate values in proPathParameters for debugging purpose- Returns:
- Attenuation
-
computePaths
Compute the propagation paths for a given geometrical cross-section / cut profile (Specific to Cnossos propagation model, will be removed after pathFinder module refacto)- Specified by:
computePathsin interfacePropagationModel- Parameters:
scene- Geometrical information about the propagation scenecutProfile- Geometrical cross-section- Returns:
- List of Cnossos propagation paths
-