Package-level declarations

Types

Link copied to clipboard
abstract class ContinuousMetric : Metric

A metric that is evaluated at each simulation step based on simulation time intervals.

Link copied to clipboard

Downsamples instantaneous metric data using reservoir sampling.

Link copied to clipboard
fun interface GlobalMetricFactory

Factory for creating global metrics across the entire simulation.

Link copied to clipboard
abstract class InstantaneousMetric : Metric

A metric that fires discrete events during simulation.

Link copied to clipboard
data class LongColumn(val label: String, val value: () -> Long?) : ResultColumn

A result column that displays a long integer value.

Link copied to clipboard
sealed class Metric

Base class for all metrics in the simulation.

Link copied to clipboard
data class MetricColumn(val label: String, val metric: Metric?, val format: String = "%.4f") : ResultColumn

A result column that displays a Metric value with a specified format.

Link copied to clipboard
fun interface MetricFactory<in NodeT>

Factory for creating metrics for individual nodes.

Link copied to clipboard
open class MetricGroup(val name: String, val associatedNode: NodeGroup?, val raw: Metric?, val moments: Moments?)

Groups related metrics (raw metric and its statistical moments) together.

Link copied to clipboard
class MetricsTracker(scenario: Scenario, downsample: Boolean) : MetricReporter

Collects and buffers metric values during simulation execution.

Link copied to clipboard
data class MetricValue(val time: Instant, val value: Double)

A recorded value of a metric at a specific simulation time.

Link copied to clipboard
class Moments(val mean: Metric, val lowerCi: Metric?, val upperCi: Metric?, val variance: Metric?, val sampleCount: () -> Long? = null)

Statistical moments of a metric (mean, confidence intervals, variance).

Link copied to clipboard
abstract class RateMetric(val durationUnit: DurationUnit) : Metric

A metric that reports at a specified rate during the simulation.

Link copied to clipboard
sealed interface ResultColumn

Base interface for columns in metric result tables.

Functions

Link copied to clipboard

Separates a list of metric values into two lists: times and values.