summaryrefslogtreecommitdiff
path: root/esds.py
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-06-13 09:56:15 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-06-13 09:56:15 +0200
commitf165afac6e9a3e360dd792c36c46706a8f7aa4d9 (patch)
tree5961eab1d2afa88fde381637b275be5a5489d496 /esds.py
parent8e453ed54ebcd9413afece84f7b1c67b616ab901 (diff)
Improve comments
Diffstat (limited to 'esds.py')
-rw-r--r--esds.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/esds.py b/esds.py
index ad08909..148c205 100644
--- a/esds.py
+++ b/esds.py
@@ -195,11 +195,11 @@ class Simulator:
def __init__(self,netmat):
"""
- Format of netmat: { "interface": {"bandwidth": matrix, "latency": matrix, "is_wired":bool}}
- For wireless interfaces the diagonal of the bandwidth and latency matrix are very important.
- It determines the duration of the tranmission for THE SENDER. Thus, at each wireless communication,
- and addionnal event is created for the sender that corresponds to a send to himself (diagonal of the matrices) used
- to unlock him from the api.send() call. Consequently, duration of the transmission can be
+ Format of netmat: { "interface": {"bandwidth": numpy_matrix, "latency": numpy_matrix, "is_wired":bool}}
+ For wireless interfaces the diagonals of the bandwidth and latency matrices are very important.
+ They determine the duration of the tranmission for THE SENDER. It allows to have a different tx duration per node and per interface.
+ Thus, at each wireless communication, an addionnal event is created for the sender that corresponds to a send to himself (diagonals of the matrices) used
+ to unlock him from the api.send() call. Consequently, the duration of the transmission (by the sender) can be
different from the time at which the receivers actually receive the data (non-diagonal entries of the matrices).
"""
self.netmat=netmat