diff options
Diffstat (limited to 'manual/assets')
| -rwxr-xr-x | manual/assets/orchestrator.py | 4 | ||||
| -rw-r--r-- | manual/assets/output.txt | 4 | ||||
| -rw-r--r-- | manual/assets/platform.yaml | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/manual/assets/orchestrator.py b/manual/assets/orchestrator.py index a697aa8..f04bd49 100755 --- a/manual/assets/orchestrator.py +++ b/manual/assets/orchestrator.py @@ -10,8 +10,8 @@ L=np.full((n,n),0) # Latency 0s s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L, "is_wired":False}}) ##### Instantiate nodes with their implementation -s.create_node("node",args="sender") # Use node.py for the first node with "sender" as argument -s.create_node("node",args="receiver") # Now the second node +s.create_node("node",interfaces=["wlan0"],args="sender") # Use node.py for the first node, specify the vailable communication interfaces and use "sender" as argument +s.create_node("node",interfaces=["wlan0"],args="receiver") # Now the second node ##### Run the simulation s.run(interferences=True) diff --git a/manual/assets/output.txt b/manual/assets/output.txt index f3cc6c7..a6cbe37 100644 --- a/manual/assets/output.txt +++ b/manual/assets/output.txt @@ -1,3 +1,3 @@ -[t=0.000,src=n0] Send 10 bytes on wlan0 -[t=0.002,src=n1] Receive 10 bytes on wlan0 +[t=0.000,src=n0,grp=def] Send 10 bytes on wlan0 +[t=0.002,src=n1,grp=def] Receive 10 bytes on wlan0 [t=0.002,src=esds] Simulation ends diff --git a/manual/assets/platform.yaml b/manual/assets/platform.yaml index 420565b..d0b2eb1 100644 --- a/manual/assets/platform.yaml +++ b/manual/assets/platform.yaml @@ -12,6 +12,7 @@ nodes: interfaces: wlan0: type: "wireless" + nodes: all # All nodes are connected to this network links: - all 50kbps 0s all # All nodes are reachable by each other txperfs: |
