Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AggregateData<out E>(val average: E, val std: E, val maximum: E, val minimum: E)

It describes aggregate data of type E. It stores the average, the std, the maximum and the minimum.

Link copied to clipboard
@Serializable
data class Humidity(val percentage: Percentage)

Humidity concept. It is described by the current percentage of humidity. So it describes the Relative Humidity.

Link copied to clipboard
@Serializable
enum LightUnit : Enum<LightUnit>

This enum describe the possible Luminosity unit of measurement.

Link copied to clipboard
@Serializable
data class Luminosity(val value: Double, val unit: LightUnit = LightUnit.LUX)

Luminosity concept. It is described by the current luminosity value expressed in a unit.

Link copied to clipboard
@Serializable
data class Percentage(val value: Double)

Percentage concept. It represents a generic percentage. Therefore, its value must be within 0 and 100.

Link copied to clipboard
@Serializable
data class Presence(val presenceDetected: Boolean)

Describe the presence inside a room.

Link copied to clipboard
@Serializable
data class Temperature(val value: Double, val unit: TemperatureUnit = TemperatureUnit.CELSIUS)

Temperature concept. It is described by the current temperature value expressed in a unit.

Link copied to clipboard
@Serializable
enum TemperatureUnit : Enum<TemperatureUnit>

This enum describe the possible Temperature unit of measurement.