Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SRC OBDH TMTC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robin Mueller
SRC OBDH TMTC
Commits
6e3cf896
Commit
6e3cf896
authored
5 years ago
by
Robin.Mueller
Browse files
Options
Downloads
Patches
Plain Diff
com IF has abstract classes now
parent
f029d812
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
comIF/OBSW_ComInterface.py
+9
-2
9 additions, 2 deletions
comIF/OBSW_ComInterface.py
with
9 additions
and
2 deletions
comIF/OBSW_ComInterface.py
+
9
−
2
View file @
6e3cf896
# -*- 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment