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 CutPlaneVisitorFactorycreate(SceneWithEmission scene)Creates a new instance of IComputePathsOut using the provided Scene data and AttenuationParameters for different time periods.voidinitialize(Connection connection, NoiseMapByReceiverMaker noiseMapByReceiverMaker)Called only once when the settings are set.voidstart(org.h2gis.api.ProgressVisitor progressLogger)Start creating and filling database tables.voidstop()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:
createin 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.IComputeRaysOutFactoryCalled only once when the settings are set.- Specified by:
initializein 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 SQLExceptionStart creating and filling database tables.- Specified by:
startin interfaceNoiseMapByReceiverMaker.IComputeRaysOutFactory- Parameters:
progressLogger- Main progression information, this method will not update the progression- Throws:
SQLException
-
stop
public void stop() throws SQLExceptionWrite 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:
stopin interfaceNoiseMapByReceiverMaker.IComputeRaysOutFactory- Throws:
SQLException
-
-