From 1c3dc4de723840a9f49f938ece83a61239398f85 Mon Sep 17 00:00:00 2001 From: sbosse Date: Fri, 29 Nov 2024 16:31:30 +0100 Subject: [PATCH] Fri 29 Nov 2024 04:30:50 PM CET --- src/SimNDT/core/receivers.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/SimNDT/core/receivers.py diff --git a/src/SimNDT/core/receivers.py b/src/SimNDT/core/receivers.py new file mode 100644 index 0000000..472e736 --- /dev/null +++ b/src/SimNDT/core/receivers.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python +# encoding: utf-8 +""" +receivers.py + +Created by Miguel Molero on 2013-10-07. +Copyright (c) 2013 MMolero. All rights reserved. +""" + +class Receivers: + + def __init__(self, method = "Trasmission"): + self.method = method + self.receiver_signals = 0 + + + def setReceivers(self, engine): + self.receiver_signals = engine.getReceivers() + + def getReceivers(self): + return self.receiver_signals + + def __str__(self): + return "Receivers(method={}, receiver_signals={})".format(self.method, self.receiver_signals) + + def __repr__(self): + return "Receivers(method={}, receiver_signals={})".format(self.method, self.receiver_signals) \ No newline at end of file