PowerSource

interface PowerSource

Represents a power source (e.g., a battery) in the system, including details like the remaining capacity, power usage, voltage, and charging status.

Author

N7ghtm4r3

Inheritors

PowerSourceImpl

Properties

Link copied to clipboard
abstract val amperage: Double

amperage The amperage of the power source (in amperes)

Link copied to clipboard

capacityUnits The units for capacity (e.g., mAh, Ah)

Link copied to clipboard
abstract val chemistry: String

chemistry The chemistry used in the power source (e.g., Li-ion, NiMH)

Link copied to clipboard
abstract val currentCapacity: Int

currentCapacity The current capacity of the power source (in mAh or Ah, depending on capacityUnits)

Link copied to clipboard
abstract val cycleCount: Int

cycleCount The number of charge cycles the power source has gone through

Link copied to clipboard
abstract val designCapacity: Int

designCapacity The designed capacity of the power source (in mAh or Ah, depending on capacityUnits)

Link copied to clipboard
abstract val deviceName: String

deviceName The name of the device associated with the power source

Link copied to clipboard
abstract val isCharging: Boolean

isCharging Whether the power source is currently charging

Link copied to clipboard
abstract val isDischarging: Boolean

isDischarging Whether the power source is currently discharging

Link copied to clipboard
abstract val isPowerOnLine: Boolean

isPowerOnLine Whether the power source is connected to an external power line

Link copied to clipboard
abstract val manufacturer: String

manufacturer The manufacturer of the power source

Link copied to clipboard
abstract val maxCapacity: Int

maxCapacity The maximum capacity of the power source (in mAh or Ah, depending on capacityUnits)

Link copied to clipboard
abstract val name: String

name The name of the power source (e.g., "Battery 1")

Link copied to clipboard
abstract val powerUsageRate: Double

powerUsageRate The rate of power usage by the power source (in watts)

Link copied to clipboard

remainingCapacityPercent The remaining capacity of the power source as a percentage of the total capacity

Link copied to clipboard
abstract val serialNumber: String

serialNumber The serial number of the power source

Link copied to clipboard
abstract val temperature: Double

temperature The temperature of the power source (in Celsius)

Link copied to clipboard

timeRemainingEstimated The estimated time remaining on the power source (in hours)

Link copied to clipboard

timeRemainingInstant The instantaneous time remaining on the power source (in hours)

Link copied to clipboard

updateAttributes Whether the attributes of the power source should be updated

Link copied to clipboard
abstract val voltage: Double

voltage The voltage of the power source (in volts)