Switch to dictionary for the network matrices

This commit is contained in:
Loic Guegan 2022-06-10 19:49:19 +02:00
parent 94b47ceab5
commit 7540e8290d
26 changed files with 72 additions and 72 deletions

View file

@ -26,7 +26,7 @@ B=np.full((n,n),5) # 5Mbps
L=np.full((n,n),0) # 0s
##### Create the simulator
s=esds.Simulator(B,L,B,L)
s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L},"eth0":{"bandwidth":B, "latency":L}})
##### Instantiate nodes
uptime=180 # 180s uptime