CmProperty

sealed interface CmProperty

Represents a module property, encapsulating the property's metadata and its current value.

Properties can be something simple like a read-only property of vehicle speed, state of charge or odometer. These properties can also be writable making them essentially a vehicle setting - turning lights on and off, updating motor assist levels or locking the vehicle.

Inheritors

Types

Link copied to clipboard
data class Range : CmProperty

Represents a property with a numerical range value.

Link copied to clipboard
data class Raw : CmProperty

Represents a property with a raw bytes value.

Link copied to clipboard
data class States : CmProperty

Represents a property with predefined states, each represented by a distinct value, allowing for selection from a set of options.

Properties

Link copied to clipboard
abstract val info: CmPropertyInfo

The CmPropertyInfo metadata describing this property.

Link copied to clipboard
abstract val value: CmPropertyValue

The CmPropertyValue containing the value of the property.