Class AttenuationComputeOutput
- java.lang.Object
-
- org.noise_planet.noisemodelling.propagation.AttenuationComputeOutput
-
- All Implemented Interfaces:
CutPlaneVisitorFactory
public class AttenuationComputeOutput extends Object implements CutPlaneVisitorFactory
Way to store data computed by threads. Multiple threads use one instance. This class must be thread safe- Author:
- Nicolas Fortin, Pierre Aumond
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AttenuationComputeOutput(boolean exportPaths, boolean exportAttenuationMatrix, SceneWithAttenuation scene)
AttenuationComputeOutput(boolean exportPaths, SceneWithAttenuation scene)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendCellComputed()
Increment cell computed counter by 1void
appendDiffractionPath(long added)
void
appendFreeFieldTestCount(long freeFieldTestCount)
void
appendImageReceiver(long added)
void
appendReflexionPath(long added)
void
appendSourceCount(long srcCount)
void
clearPropagationPaths()
long
getCellComputed()
List<CnossosPath>
getPropagationPaths()
Scene
getScene()
List<ReceiverNoiseLevel>
getVerticesSoundLevel()
void
log(String str)
CutPlaneVisitor
subProcess(org.h2gis.api.ProgressVisitor visitor)
-
-
-
Field Detail
-
receiversAttenuationLevels
public ConcurrentLinkedDeque<ReceiverNoiseLevel> receiversAttenuationLevels
-
pathParameters
public Deque<CnossosPath> pathParameters
-
propagationPathsSize
public AtomicInteger propagationPathsSize
-
exportPaths
public boolean exportPaths
-
exportAttenuationMatrix
public boolean exportAttenuationMatrix
-
cnossosPathCount
public AtomicLong cnossosPathCount
-
nb_couple_receiver_src
public AtomicLong nb_couple_receiver_src
-
nb_obstr_test
public AtomicLong nb_obstr_test
-
nb_image_receiver
public AtomicLong nb_image_receiver
-
nb_reflexion_path
public AtomicLong nb_reflexion_path
-
nb_diffraction_path
public AtomicLong nb_diffraction_path
-
cellComputed
public AtomicInteger cellComputed
-
scene
public SceneWithAttenuation scene
-
-
Constructor Detail
-
AttenuationComputeOutput
public AttenuationComputeOutput(boolean exportPaths, SceneWithAttenuation scene)
-
AttenuationComputeOutput
public AttenuationComputeOutput(boolean exportPaths, boolean exportAttenuationMatrix, SceneWithAttenuation scene)
-
-
Method Detail
-
getScene
public Scene getScene()
-
subProcess
public CutPlaneVisitor subProcess(org.h2gis.api.ProgressVisitor visitor)
- Specified by:
subProcess
in interfaceCutPlaneVisitorFactory
- Parameters:
visitor
- Progression information, used to cancel processing too- Returns:
- an instance of the interface IComputePathsOut
-
getVerticesSoundLevel
public List<ReceiverNoiseLevel> getVerticesSoundLevel()
- Returns:
- a list of SourceReceiverAttenuation
-
getPropagationPaths
public List<CnossosPath> getPropagationPaths()
- Returns:
- a list of Path propagation
-
clearPropagationPaths
public void clearPropagationPaths()
-
appendReflexionPath
public void appendReflexionPath(long added)
-
appendDiffractionPath
public void appendDiffractionPath(long added)
-
appendImageReceiver
public void appendImageReceiver(long added)
-
appendSourceCount
public void appendSourceCount(long srcCount)
-
appendFreeFieldTestCount
public void appendFreeFieldTestCount(long freeFieldTestCount)
-
log
public void log(String str)
-
appendCellComputed
public void appendCellComputed()
Increment cell computed counter by 1
-
getCellComputed
public long getCellComputed()
-
-