ActiveMeasurementStore

class ActiveMeasurementStore(val id: Int, initialName: String = "M-", val startTime: Long, val startEventIndex: Int)

An active measurement is something a session might potentially have. Compared to FinishedMeasurement, the active measurement has mutable fields for updating the runs and meter states. Use the routine 'finish' to produce a FinishedMeasurement.

Constructors

Link copied to clipboard
constructor(id: Int, initialName: String = "M-", startTime: Long, startEventIndex: Int)

Properties

Link copied to clipboard
val id: Int

ID of the measurement

Link copied to clipboard
val name: <Error class: unknown class><String>
Link copied to clipboard

index of the first associated event

Link copied to clipboard

The start timestamp, @see System.currentTimeMillis()

Functions

Link copied to clipboard
fun finish(stopTime: Long, sessionEventCount: Int, pool: MeterHandlerPool): MeasurementSummary

Finish the measurement and return a summary of the measurement.

Link copied to clipboard

Is this measurement active?

Link copied to clipboard

Generate an immutable snapshot of this measurement.

Link copied to clipboard
fun startRun(startTime: Long, sessionEventCount: Int, pool: MeterHandlerPool): ActiveRun

Start a new active run.

Link copied to clipboard
fun stopRun(stopTime: Long, sessionEventCount: Int, pool: MeterHandlerPool): RunSummary

Finish the active run and return a summary of the run.

Link copied to clipboard
open override fun toString(): String