Class AttenuationVisitor
- java.lang.Object
-
- org.noise_planet.noisemodelling.propagation.AttenuationVisitor
-
- All Implemented Interfaces:
CutPlaneVisitor
public class AttenuationVisitor extends Object implements CutPlaneVisitor
Receive vertical cut plane, compute the attenuation corresponding to this plane
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.noise_planet.noisemodelling.pathfinder.CutPlaneVisitor
CutPlaneVisitor.PathSearchStrategy
-
-
Field Summary
Fields Modifier and Type Field Description boolean
keepRays
AttenuationComputeOutput
multiThreadParent
List<CnossosPath>
pathParameters
List<ReceiverNoiseLevel>
receiverAttenuationLevels
-
Constructor Summary
Constructors Constructor Description AttenuationVisitor(AttenuationComputeOutput multiThreadParent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropagationPath(CnossosPath path)
Get propagation path resultvoid
finalizeReceiver(PathFinder.ReceiverPointInfo receiver)
No more propagation paths will be pushed for this receiver identifierCutPlaneVisitor.PathSearchStrategy
onNewCutPlane(CutProfile cutProfile)
A new vertical profile between a receiver and a source has been foundvoid
startReceiver(PathFinder.ReceiverPointInfo receiver, Collection<PathFinder.SourcePointInfo> sourceList, AtomicInteger cutProfileCount)
Called before looking for vertical cut planes between the receiver and the sources.
-
-
-
Field Detail
-
multiThreadParent
public AttenuationComputeOutput multiThreadParent
-
receiverAttenuationLevels
public List<ReceiverNoiseLevel> receiverAttenuationLevels
-
pathParameters
public List<CnossosPath> pathParameters
-
keepRays
public boolean keepRays
-
-
Constructor Detail
-
AttenuationVisitor
public AttenuationVisitor(AttenuationComputeOutput multiThreadParent)
-
-
Method Detail
-
onNewCutPlane
public CutPlaneVisitor.PathSearchStrategy onNewCutPlane(CutProfile cutProfile)
Description copied from interface:CutPlaneVisitor
A new vertical profile between a receiver and a source has been found- Specified by:
onNewCutPlane
in interfaceCutPlaneVisitor
- Parameters:
cutProfile
- vertical profile- Returns:
- Will skip or not the next processing depending on this value.
-
startReceiver
public void startReceiver(PathFinder.ReceiverPointInfo receiver, Collection<PathFinder.SourcePointInfo> sourceList, AtomicInteger cutProfileCount)
Description copied from interface:CutPlaneVisitor
Called before looking for vertical cut planes between the receiver and the sources.- Specified by:
startReceiver
in interfaceCutPlaneVisitor
- Parameters:
receiver
- Receiver informationsourceList
- All sources in the range of this receiver sorted by the distance from the receiver
-
addPropagationPath
public void addPropagationPath(CnossosPath path)
Get propagation path result- Parameters:
path
- Propagation path result
-
finalizeReceiver
public void finalizeReceiver(PathFinder.ReceiverPointInfo receiver)
No more propagation paths will be pushed for this receiver identifier- Specified by:
finalizeReceiver
in interfaceCutPlaneVisitor
- Parameters:
receiver
-
-
-