Companion

Total time each object spends in a container, reported per object. Global reports total time in the simulation.

If an object enters a node twice, we add the new duration to the previous one (and then only report this value when thet object leaves the simulation).

Functions

Link copied to clipboard
open override fun create(scenario: Scenario): MetricGroup

Creates a global residence time metric across the entire scenario (uses default time unit of seconds).

fun create(scenario: Scenario, unit: DurationUnit): MetricGroup

Creates a global residence time metric across the entire scenario with optional time unit.

open override fun create(node: Container<*>, scenario: Scenario): MetricGroup?

Creates a local residence time metric for a specific node (uses default time unit of seconds).

fun create(node: Container<*>, scenario: Scenario, unit: DurationUnit): MetricGroup?

Creates a local residence time metric for a specific node with optional time unit.