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 booleankeepRaysAttenuationComputeOutputmultiThreadParentList<CnossosPath>pathParametersList<ReceiverNoiseLevel>receiverAttenuationLevels
-
Constructor Summary
Constructors Constructor Description AttenuationVisitor(AttenuationComputeOutput multiThreadParent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeAttenuation(CnossosPath path)Process Cnossos propagation path to compute attenuationvoidfinalizeReceiver(PathFinder.ReceiverPointInfo receiver)No more propagation paths will be pushed for this receiver identifierCutPlaneVisitor.PathSearchStrategyonNewCutPlane(CutProfile cutProfile)A new vertical profile between a receiver and a source has been foundvoidstartReceiver(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:CutPlaneVisitorA new vertical profile between a receiver and a source has been found- Specified by:
onNewCutPlanein 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: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
-
computeAttenuation
public void computeAttenuation(CnossosPath path)
Process Cnossos propagation path to compute attenuation- 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:
finalizeReceiverin interfaceCutPlaneVisitor- Parameters:
receiver-
-
-