Class DefaultCutPlaneProcessing

java.lang.Object
org.noise_planet.noisemodelling.jdbc.output.DefaultCutPlaneProcessing
All Implemented Interfaces:
IComputeRaysOutFactory

public class DefaultCutPlaneProcessing extends Object implements IComputeRaysOutFactory
  • Constructor Details

    • DefaultCutPlaneProcessing

      public DefaultCutPlaneProcessing(NoiseMapDatabaseParameters noiseMapDatabaseParameters, AtomicBoolean exitWhenDone, AtomicBoolean aborted)
      Parameters:
      noiseMapDatabaseParameters - Database settings
      exitWhenDone - Tell table writer thread to empty current stacks then stop waiting for new data
      aborted - If true, all processing are aborted and all threads will be shutdown
  • Method Details

    • create

      Creates a new instance of IComputePathsOut using the provided Scene data and AttenuationParameters for different time periods.
      Specified by:
      create in interface 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: IComputeRaysOutFactory
      Called only once when the settings are set.
      Specified by:
      initialize in interface 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 interface IComputeRaysOutFactory
      Parameters:
      progressLogger - Main progression information, this method will not update the progression
      Throws:
      SQLException - If an SQL exception occurs
    • 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 interface IComputeRaysOutFactory
      Throws:
      SQLException
    • setPropagationModelCreator

      public void setPropagationModelCreator(PropagationModelCreator propagationModelCreator)
      Setter for propagationModelCreator
      Specified by:
      setPropagationModelCreator in interface IComputeRaysOutFactory
      Parameters:
      propagationModelCreator - interface for PropagationModel creation
    • getPropagationModelCreator

      public PropagationModelCreator getPropagationModelCreator()
      Getter for propagationModelCreator
      Specified by:
      getPropagationModelCreator in interface IComputeRaysOutFactory
      Returns:
      interface for PropagationModel creation