Skip to content
Snippets Groups Projects
Commit 6e3cf896 authored by Robin Mueller's avatar Robin Mueller
Browse files

com IF has abstract classes now

parent f029d812
No related branches found
No related tags found
No related merge requests found
# -*- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment