Class NoiseMapWriter
java.lang.Object
org.noise_planet.noisemodelling.jdbc.output.NoiseMapWriter
Process that run SQL query to feed tables
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNoiseMapWriter(Connection connection, NoiseMapByReceiverMaker noiseMapByReceiverMaker, ResultsCache ResultsCache, AtomicBoolean exitWhenDone, AtomicBoolean aborted) Constructs a new NoiseMapWriter object with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptioncall()Executes the SQL writing process.voidinit()Initializes the noise map calculation by setting up required database tables based on the specified parameters.static CnossosPathjsonToPropagationPath(String json)
-
Field Details
-
frequencyArray
-
aWeightingArray
public double[] aWeightingArray
-
-
Constructor Details
-
NoiseMapWriter
public NoiseMapWriter(Connection connection, NoiseMapByReceiverMaker noiseMapByReceiverMaker, ResultsCache ResultsCache, AtomicBoolean exitWhenDone, AtomicBoolean aborted) Constructs a new NoiseMapWriter object with the specified parameters.- Parameters:
connection- the database connection used for writing datanoiseMapByReceiverMaker- the parameters defining the noise map computationResultsCache- the attenuated paths containing computed noise data
-
-
Method Details
-
propagationPathAsJSON
public String propagationPathAsJSON(CnossosPath path) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
jsonToPropagationPath
public static CnossosPath jsonToPropagationPath(String json) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
init
Initializes the noise map calculation by setting up required database tables based on the specified parameters.- Throws:
SQLExceptionIOException
-
call
Executes the SQL writing process.
-