create

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).

Return

a metric group containing residence times and statistical moments, or null if node doesn't support residence time

Parameters

node

the container to track residence time for

scenario

the scenario containing all nodes


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

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

Return

a metric group containing residence times and statistical moments, or null if node doesn't support residence time

Parameters

node

the container to track residence time for

scenario

the scenario containing all nodes

unit

the time unit for durations (default: seconds)


open override fun create(scenario: Scenario): MetricGroup

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

Return

a metric group containing global residence times and statistical moments

Parameters

scenario

the scenario to create a global metric for


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

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

Return

a metric group containing global residence times and statistical moments

Parameters

scenario

the scenario to create a global metric for

unit

the time unit for durations (default: seconds)