MeterSource

An abstraction for discovering new meters.

Inheritors

Properties

Link copied to clipboard
abstract val name: String

Name of the source

Functions

Link copied to clipboard
abstract fun countMeters(): Int

Returns the number of discovered meters.

Link copied to clipboard

Returns a list of meter constructors for the meters discovered by this source. The constructors have a field for querying the specifications of the meters and another method for constructing the handler for that specific meter.

Link copied to clipboard
open fun init()

Initialize the meter source.

Link copied to clipboard
abstract fun recognizedTypes(): List<String>

Each type of meter has a unique id string. Returns the list of meters recognized by this source.

Link copied to clipboard
open fun status(): String

Meter source status