ComputerSystemImpl

class ComputerSystemImpl(val computerSystemInfo: ComputerSystem) : ComputerSystem

Implementation of the ComputerSystem interface. This class provides the system's details, such as manufacturer, model, serial number, hardware UUID, firmware, and baseboard information.

Parameters

computerSystemInfo

the system hardware information from OSHI

See also

Constructors

Link copied to clipboard
constructor(computerSystemInfo: ComputerSystem)

Properties

Link copied to clipboard
open override val baseboard: Baseboard

baseboard returns the baseboard (motherboard) details of the system by initializing a BaseboardImpl object. This includes baseboard manufacturer, model, version, and serial number.

Link copied to clipboard
val computerSystemInfo: ComputerSystem
Link copied to clipboard
open override val firmware: Firmware

firmware returns the firmware details for the system by initializing a FirmwareImpl object. This includes the firmware manufacturer, name, version, description, and release date.

Link copied to clipboard
open override val hardwareUUID: String

hardwareUUID provides the unique hardware identifier for the system. This information is fetched from the system hardware info.

Link copied to clipboard
open override val manufacturer: String

manufacturer provides the manufacturer of the computer system. This information is fetched from the system hardware info.

Link copied to clipboard
open override val model: String

model provides the model of the computer system. This information is fetched from the system hardware info.

Link copied to clipboard
open override val serialNumber: String

serialNumber provides the serial number of the computer system. This information is fetched from the system hardware info.

Functions

Link copied to clipboard
private fun initBaseBoard(source: Baseboard): Baseboard

Initializes a BaseboardImpl object using the given baseboard data

Link copied to clipboard
private fun initFirmware(source: Firmware): Firmware

Initializes a FirmwareImpl object using the given firmware data