MetricFactory

fun interface MetricFactory<in NodeT>

Factory for creating metrics for individual nodes.

Implementations create MetricGroup objects for specific node types. Returns null if no metric should be created for a given node.

Parameters

NodeT

the type of nodes this factory creates metrics for

Functions

Link copied to clipboard
abstract fun create(node: NodeT, scenario: Scenario): MetricGroup?

Creates a metric group for the given node.