/
Alexander-Golyshkin
/
VectorDbcChecker
Обзор
Документация
Войти
/
Alexander-Golyshkin
/
VectorDbcChecker
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
interfaces/DbcCheckerInterface.py
82 строки
2 KB
Alexander.Golyshkin
Added new functionality PLRN (#1)
31 янв 2023, 18:40
31 янв 2023, 18:40
1e8d8ea
Код
Авторство
О чём код?
from abc import abstractmethod import cantools.database.can.database as candb from cantools.database.can.message import Message from cantools.database.can.signal import Signal class DbcCheckerInterface: @abstractmethod def processDbcFile( self, aDataBase: candb.Database, aDbcPath: str ) -> None: """ Start processing a DBC file. :param aDataBase: dbc database :param aDbcPath: dbc file path :return: void """ raise NotImplementedError() @abstractmethod def processMessage( self, aMessage: Message ) -> None: """ Start a new message processing in DBC file. :param aMessage: dbc message object :return: void """ raise NotImplementedError() @abstractmethod def processSignal( self, aSignal: Signal ) -> None: """ Start a new signal processing in DBC message. :param aSignal: dbc message signal object :return: void """ raise NotImplementedError() @abstractmethod def printReport( self ) -> None: """ Make a report for finished DBC files. :return: void """ raise NotImplementedError() @abstractmethod def onFinish( self ) -> None: """ This method will be invoked when engine is finished processing all DBC files. :return: void """ raise NotImplementedError() @abstractmethod def onStart( self ) -> None: """ This method will be invoked when engine is started processing DBC files. :return: void """ raise NotImplementedError() def isActive( self ) -> bool: """ This method return a registered plugin current status. :return: Ttue if active, False otherwise """ return True @abstractmethod def getName( self ) -> str: """ This method returns a registered plugin name. :return: plugin name """ raise NotImplementedError()