Hardware

interface Hardware

The Hardware interface represents the hardware components of a system. It provides details about the computer system, processors, memory, storage devices, network interfaces, displays, sensors, and more. This interface is useful for obtaining comprehensive hardware information for monitoring or diagnostics.

Author

N7ghtm4r3

Inheritors

HardwareImpl

Properties

Link copied to clipboard

centralProcessor The details of the system's central processor (CPU), including information like cores, speed, and usage.

Link copied to clipboard

computerSystem The details of the computer system, including manufacturer, model, and firmware.

Link copied to clipboard
abstract val diskStores: List<HWDiskStore>

diskStores A list of disk storage devices, including information on disk usage, size, and read/write operations.

Link copied to clipboard
abstract val displays: List<Display>

displays A list of display devices connected to the system (e.g., monitors).

Link copied to clipboard

globalMemory The details about the system's global memory, including total size, available memory, and page size.

Link copied to clipboard

graphicsCards A list of graphics cards available on the system.

Link copied to clipboard

logicalVolumeGroups A list of logical volume groups configured on the system.

Link copied to clipboard
abstract val networkIFs: List<NetworkIF>

networkIFs A list of network interfaces on the system, including details such as IP addresses, speed, and state.

Link copied to clipboard

powerSources A list of power sources available to the system (e.g., battery, AC power).

Link copied to clipboard
abstract val sensors: Sensors

sensors The details of system sensors (e.g., temperature, fan speed, and voltage).

Link copied to clipboard
abstract val soundCards: List<SoundCard>

soundCards A list of sound cards available on the system.

Functions

Link copied to clipboard
abstract fun getNetworkIfs(includeLocalInterfaces: Boolean): List<NetworkIF>

Returns the list of network interfaces on the system. If includeLocalInterfaces is true, local interfaces (e.g., loopback interfaces) will also be included.

Link copied to clipboard
abstract fun getUsbDevices(tree: Boolean): List<UsbDevice>

Returns the list of USB devices connected to the system. If tree is true, the devices are returned in a hierarchical tree structure.