PowerMeter

data class PowerMeter(val meterType: MeterType, val protocol: String, val description: String, val channels: List<String>, val outputChannels: List<String> = channels, val pollPeriod: Int, val sampleRate: Int, val logEvents: Boolean, val present: Boolean = true, val extra: PowerMeterData, val capabilities: List<MeterCapability>, val id: String = "-", val shortId: String? = null, val describe: List<String> = extra.describe)

Power meter descriptor with abstract informative content.

Constructors

Link copied to clipboard
constructor(meterType: MeterType, protocol: String, description: String, channels: List<String>, outputChannels: List<String> = channels, pollPeriod: Int, sampleRate: Int, logEvents: Boolean, present: Boolean = true, extra: PowerMeterData, capabilities: List<MeterCapability>, id: String = "-", shortId: String? = null, describe: List<String> = extra.describe)

Properties

Link copied to clipboard

Meter's capabilities

Link copied to clipboard

List of channel ids

Link copied to clipboard
Link copied to clipboard

Description of the power meter

Link copied to clipboard

Handler dependent extra data

Link copied to clipboard
val id: String

Identifier, typically calculated from the hash value derived from the other metadata fields

Link copied to clipboard

Enable observers to log the events

Link copied to clipboard

Describes a power meter type (id & description)

Link copied to clipboard

List of channel ids for output channels

Link copied to clipboard

Polling period in milliseconds

Link copied to clipboard
val present: Boolean = true

Is this meter physically present

Link copied to clipboard

Name of the protocol

Link copied to clipboard

Samples per second

Link copied to clipboard
val shortId: String? = null

Short version of the id if any

Functions

Link copied to clipboard
fun channelId(name: String): Int
Link copied to clipboard
Link copied to clipboard
fun describe(): <Error class: unknown class>
Link copied to clipboard
fun dummyHandler(meterState: MeterState? = null): MeterHandler
Link copied to clipboard
fun initialChannelState(): <Error class: unknown class>
Link copied to clipboard
open override fun toString(): String