Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

# SPDX-License-Identifier: MIT 

 

import logging 

import typing 

 

from typing import Any 

 

if typing.TYPE_CHECKING: 

from ratbag_emu.device import Device # pragma: no cover 

 

 

class HWComponent(object): 

''' 

Represents a physical hardware component 

 

This is the "brain" of the device, it is here where we custom logic is 

implemented. 

''' 

def __init__(self, owner: 'Device', state: Any = None): 

self.__logger = logging.getLogger('ratbag-emu.hw_component') 

 

self._owner = owner 

 

self.state = state