MeterNameGenerator

class MeterNameGenerator(existing: List<PowerMeter> = listOf())

Generates a unique id for a power meter in a thread-safe way. Contains a mutable database for name mappings.

Constructors

Link copied to clipboard
constructor(existing: List<PowerMeter> = listOf())

Functions

Link copied to clipboard
fun generate(meterData: PowerMeter): PowerMeter