summaryrefslogtreecommitdiff
path: root/tests/api_send_wlan0_2s1r/simulator.py
blob: 4cce1d0a7f6eaace7553de4bf2023dcf1beee3c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python

# Load ESDS
import esds
import numpy as np

B=np.full((3,3),8)
L=np.full((3,3),0)
s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L, "is_wired":False}, "eth0":{"bandwidth":B, "latency":L, "is_wired":True}})

s.create_node("sender")
s.create_node("sender")
s.create_node("receiver")

s.run()