Class AttenuationVisitor
java.lang.Object
org.noise_planet.noisemodelling.propagation.AttenuationVisitor
- All Implemented Interfaces:
CutPlaneVisitor
Receive vertical cut plane, compute the attenuation corresponding to this plane
-
Nested Class Summary
Nested classes/interfaces inherited from interface CutPlaneVisitor
CutPlaneVisitor.PathSearchStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionboolean -
Constructor Summary
ConstructorsConstructorDescriptionAttenuationVisitor(AttenuationComputeOutput multiThreadParent) Constructor for AttenuationVisitor object -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalizeReceiver(PathFinder.ReceiverPointInfo receiver) No more propagation paths will be pushed for this receiver identifieronNewCutPlane(CutProfile cutProfile) Manage attenuation computation each time a cutProfile is found.voidstartReceiver(PathFinder.ReceiverPointInfo receiver, Collection<PathFinder.SourcePointInfo> sourceList, AtomicInteger cutProfileCount) Called before looking for vertical cut planes between the receiver and the sources.
-
Field Details
-
multiThreadParent
-
receiverAttenuationLevels
-
attenuationOutputs
-
keepRays
public boolean keepRays
-
-
Constructor Details
-
AttenuationVisitor
Constructor for AttenuationVisitor object- Parameters:
multiThreadParent- Multithread data class
-
-
Method Details
-
onNewCutPlane
Manage attenuation computation each time a cutProfile is found. Note: in the case of CNOSSOS propagation model, a new instance of PropagationModel needs to be created for each cutProfile to ensure a new computation of the cnossosPaths.- Specified by:
onNewCutPlanein interfaceCutPlaneVisitor- Parameters:
cutProfile- vertical profile- Returns:
- Search strategy
-
startReceiver
public void startReceiver(PathFinder.ReceiverPointInfo receiver, Collection<PathFinder.SourcePointInfo> sourceList, AtomicInteger cutProfileCount) Description copied from interface:CutPlaneVisitorCalled before looking for vertical cut planes between the receiver and the sources.- Specified by:
startReceiverin interfaceCutPlaneVisitor- Parameters:
receiver- Receiver informationsourceList- All sources in the range of this receiver sorted by the distance from the receiver
-
finalizeReceiver
No more propagation paths will be pushed for this receiver identifier- Specified by:
finalizeReceiverin interfaceCutPlaneVisitor- Parameters:
receiver- receiver point information
-