From 6e3cf896dfe9db538ebddc34a41feb771a1e2c95 Mon Sep 17 00:00:00 2001
From: "Robin.Mueller" <robin.mueller.m@gmail.com>
Date: Sun, 15 Dec 2019 14:29:12 +0100
Subject: [PATCH] com IF has abstract classes now

---
 comIF/OBSW_ComInterface.py | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/comIF/OBSW_ComInterface.py b/comIF/OBSW_ComInterface.py
index b76ea09..571fc8d 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
-- 
GitLab