diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-06-13 09:56:15 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-06-13 09:56:15 +0200 |
| commit | f165afac6e9a3e360dd792c36c46706a8f7aa4d9 (patch) | |
| tree | 5961eab1d2afa88fde381637b275be5a5489d496 /example | |
| parent | 8e453ed54ebcd9413afece84f7b1c67b616ab901 (diff) | |
Improve comments
Diffstat (limited to 'example')
| -rwxr-xr-x | example/simulator.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/example/simulator.py b/example/simulator.py index f70c294..aa8df54 100755 --- a/example/simulator.py +++ b/example/simulator.py @@ -16,7 +16,9 @@ import numpy as np ##### Bandwidth matrix # Bandwidth value can be 0 for unreachable nodes -# Diagonal entries impact the transmission duration for wireless transmissions (wlan0) +# Regarding 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. Please cf esds.py for more informations. n=2 # Number of nodes including the sender B=np.full((n,n),5) # 5Mbps @@ -26,6 +28,8 @@ B=np.full((n,n),5) # 5Mbps L=np.full((n,n),0) # 0s ##### Create the simulator +# esds.Simulator take at least a dictionnary as a parameter +# This dictionnary contains all the network interfaces (name as a key) of each node s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L, "is_wired":False},"eth0":{"bandwidth":B, "latency":L, "is_wired":True}}) ##### Instantiate nodes |
