mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-06-06 13:27:39 +00:00
Use different matrix for wlan0 and eth0
This commit is contained in:
parent
a857977702
commit
94b47ceab5
26 changed files with 71 additions and 57 deletions
|
@ -26,13 +26,13 @@ import numpy as np
|
|||
|
||||
B=np.full((2,2),8)
|
||||
L=np.full((2,2),0)
|
||||
s=esds.Simulator(B,L)
|
||||
s=esds.Simulator(B,L,B,L)
|
||||
|
||||
s.create_node("sender")
|
||||
s.create_node("receiver")
|
||||
|
||||
def callback(simulator):
|
||||
simulator.log("Network update!")
|
||||
simulator.update_network(simulator.B*2,simulator.L)
|
||||
simulator.update_network(simulator.B_wlan0*2,simulator.L_wlan0,simulator.B_eth0*2,simulator.L_eth0)
|
||||
|
||||
s.run(breakpoints_every=1/2,breakpoint_callback=callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue