41 lines
794 B
Python
41 lines
794 B
Python
from abc import ABC, abstractmethod
|
|
from typing import List, Tuple
|
|
|
|
|
|
class Device(ABC):
|
|
"""docstring for Model."""
|
|
|
|
@property
|
|
def get_data(self) -> Tuple[List, List]:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def set_config(self, config: dict) -> None:
|
|
"""
|
|
Setzen von Parameter die sich nie ändern Addresse usw.
|
|
"""
|
|
pass
|
|
|
|
@abstractmethod
|
|
def get_config(self) -> dict:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def get_status(self) -> dict:
|
|
"""
|
|
Returns a dict from status information. These values are not needed for analysis
|
|
"""
|
|
pass
|
|
|
|
@abstractmethod
|
|
def start_measuring(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def stop_measuring(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def exit(self):
|
|
pass
|