Class NoiseMapWriter
- java.lang.Object
-
- org.noise_planet.noisemodelling.jdbc.output.NoiseMapWriter
-
-
Field Summary
Fields Modifier and Type Field Description double[]
aWeightingArray
List<Integer>
frequencyArray
-
Constructor Summary
Constructors Constructor Description NoiseMapWriter(Connection connection, NoiseMapByReceiverMaker noiseMapByReceiverMaker, ResultsCache ResultsCache, AtomicBoolean exitWhenDone, AtomicBoolean aborted)
Constructs a new NoiseMapWriter object with the specified parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
call()
Executes the SQL writing process.void
init()
Initializes the noise map calculation by setting up required database tables based on the specified parameters.static CnossosPath
jsonToPropagationPath(String json)
String
propagationPathAsJSON(CnossosPath path)
-
-
-
Constructor Detail
-
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 Detail
-
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
public void init() throws SQLException, IOException
Initializes the noise map calculation by setting up required database tables based on the specified parameters.- Throws:
SQLException
IOException
-
-