Class ResultsCache
java.lang.Object
org.noise_planet.noisemodelling.jdbc.output.ResultsCache
- All Implemented Interfaces:
ProfilerThread.Metric
Store results in memory, awaiting writing on sql database
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AtomicIntegerfinal AtomicLongAs reading the size of the queue is a O(n) operation, this attribute store the current number of elements in the stacksfinal AtomicLongfinal AtomicIntegerfinal AtomicLongfinal AtomicLongfinal AtomicLong -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the average distance at which noise sources are ignored for all receiversString[]String[]doubleGet the percentage of ignored sources.voidtick(long currentMillis) Called with little intervals in order to process metrics on the same thread than the call to getCurrentValues
-
Field Details
-
queueSize
As reading the size of the queue is a O(n) operation, this attribute store the current number of elements in the stacks -
totalRaysInserted
-
receiverLevels
-
attenuationOutputs
-
statisticsSumDistanceCutSource
-
statisticsSumDistanceCutSourceCount
-
statisticsSumSourcesCount
-
statisticsSumSourcesCountIgnored
-
cutProfileCount
-
-
Constructor Details
-
ResultsCache
public ResultsCache()
-
-
Method Details
-
getColumnNames
- Specified by:
getColumnNamesin interfaceProfilerThread.Metric
-
getCurrentValues
- Specified by:
getCurrentValuesin interfaceProfilerThread.Metric
-
getAverageCutSourceDistance
public double getAverageCutSourceDistance()Get the average distance at which noise sources are ignored for all receivers- Returns:
- the average distance at which noise sources are ignored for all receivers
-
getPercentageIgnoredSources
public double getPercentageIgnoredSources()Get the percentage of ignored sources.- Returns:
- Percentage of ignored sources.
-
tick
public void tick(long currentMillis) Description copied from interface:ProfilerThread.MetricCalled with little intervals in order to process metrics on the same thread than the call to getCurrentValues- Specified by:
tickin interfaceProfilerThread.Metric- Parameters:
currentMillis- Time
-