diff --git a/comIF/OBSW_ComInterface.py b/comIF/OBSW_ComInterface.py index b76ea093e52b70c38f2ae9f0be00959f6301552c..571fc8d7f5e50e5a3322d36546566f93bd235b7b 100644 --- a/comIF/OBSW_ComInterface.py +++ b/comIF/OBSW_ComInterface.py @@ -1,31 +1,38 @@ # -*- coding: utf-8 -*- """ -Program: OBSW_UnitTest.py +Program: OBSW_ComInterface.py Date: 01.11.2019 -Description: Generic Communication Interface. Defines the syntax of the communication functions +Description: Generic Communication Interface. Defines the syntax of the communication functions. + Abstract methods must be implemented by child class (e.g. Ethernet Com IF) @author: R. Mueller """ +from abc import abstractmethod class CommunicationInterface: def __init__(self): pass + @abstractmethod def sendTelecommand(self, tcPacket, tcPacketInfo=""): pass + @abstractmethod def performListenerMode(self): pass + @abstractmethod def receiveTelemetry(self): pass def receiveTelemetryDeserializeAndStore(self, tmQueue): pass + @abstractmethod def receiveTelemetryAndStoreTuple(self, tmTupleQueue): pass + @abstractmethod def pollInterface(self, parameter): pass