Class DefaultCutPlaneProcessing
- java.lang.Object
-
- org.noise_planet.noisemodelling.jdbc.output.DefaultCutPlaneProcessing
-
- All Implemented Interfaces:
NoiseMapByReceiverMaker.IComputeRaysOutFactory
public class DefaultCutPlaneProcessing extends Object implements NoiseMapByReceiverMaker.IComputeRaysOutFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultCutPlaneProcessing(NoiseMapDatabaseParameters noiseMapDatabaseParameters, AtomicBoolean exitWhenDone, AtomicBoolean aborted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CutPlaneVisitorFactory
create(SceneWithEmission scene)
Creates a new instance of IComputePathsOut using the provided Scene data and AttenuationParameters for different time periods.void
initialize(Connection connection, NoiseMapByReceiverMaker noiseMapByReceiverMaker)
Called only once when the settings are set.void
start(org.h2gis.api.ProgressVisitor progressLogger)
Start creating and filling database tables.void
stop()
Write the last results and stop the sql writing thread This method is blocked until the data is written or if there is an issue
-
-
-
Constructor Detail
-
DefaultCutPlaneProcessing
public DefaultCutPlaneProcessing(NoiseMapDatabaseParameters noiseMapDatabaseParameters, AtomicBoolean exitWhenDone, AtomicBoolean aborted)
- Parameters:
noiseMapDatabaseParameters
- Database settingsexitWhenDone
- Tell table writer thread to empty current stacks then stop waiting for new dataaborted
- If true, all processing are aborted and all threads will be shutdown
-
-
Method Detail
-
create
public CutPlaneVisitorFactory create(SceneWithEmission scene)
Creates a new instance of IComputePathsOut using the provided Scene data and AttenuationParameters for different time periods.- Specified by:
create
in interfaceNoiseMapByReceiverMaker.IComputeRaysOutFactory
- Parameters:
scene
- the scene data for the current computation thread.- Returns:
- A new instance of IComputePathsOut initialized with the provided parameters.
-
initialize
public void initialize(Connection connection, NoiseMapByReceiverMaker noiseMapByReceiverMaker) throws SQLException
Description copied from interface:NoiseMapByReceiverMaker.IComputeRaysOutFactory
Called only once when the settings are set.- Specified by:
initialize
in interfaceNoiseMapByReceiverMaker.IComputeRaysOutFactory
- Parameters:
connection
- the database connection to be used for initialization.noiseMapByReceiverMaker
- the noise map by receiver maker object associated with the computation process.- Throws:
SQLException
- if an SQL exception occurs while initializing the propagation process data factory.
-
start
public void start(org.h2gis.api.ProgressVisitor progressLogger) throws SQLException
Start creating and filling database tables.- Specified by:
start
in interfaceNoiseMapByReceiverMaker.IComputeRaysOutFactory
- Parameters:
progressLogger
- Main progression information, this method will not update the progression- Throws:
SQLException
-
stop
public void stop() throws SQLException
Write the last results and stop the sql writing thread This method is blocked until the data is written or if there is an issue- Specified by:
stop
in interfaceNoiseMapByReceiverMaker.IComputeRaysOutFactory
- Throws:
SQLException
-
-