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
Branches
Tags
No related merge requests found
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
Program: OBSW_UnitTest.py Program: OBSW_ComInterface.py
Date: 01.11.2019 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 @author: R. Mueller
""" """
from abc import abstractmethod
class CommunicationInterface: class CommunicationInterface:
def __init__(self): def __init__(self):
pass pass
@abstractmethod
def sendTelecommand(self, tcPacket, tcPacketInfo=""): def sendTelecommand(self, tcPacket, tcPacketInfo=""):
pass pass
@abstractmethod
def performListenerMode(self): def performListenerMode(self):
pass pass
@abstractmethod
def receiveTelemetry(self): def receiveTelemetry(self):
pass pass
def receiveTelemetryDeserializeAndStore(self, tmQueue): def receiveTelemetryDeserializeAndStore(self, tmQueue):
pass pass
@abstractmethod
def receiveTelemetryAndStoreTuple(self, tmTupleQueue): def receiveTelemetryAndStoreTuple(self, tmTupleQueue):
pass pass
@abstractmethod
def pollInterface(self, parameter): def pollInterface(self, parameter):
pass pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment