diff options
Diffstat (limited to 'tests/breakpoints_manual_no_callback_1n')
| -rw-r--r-- | tests/breakpoints_manual_no_callback_1n/node.py | 4 | ||||
| -rw-r--r-- | tests/breakpoints_manual_no_callback_1n/out | 3 | ||||
| -rwxr-xr-x | tests/breakpoints_manual_no_callback_1n/simulator.py | 15 |
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/breakpoints_manual_no_callback_1n/node.py b/tests/breakpoints_manual_no_callback_1n/node.py new file mode 100644 index 0000000..f8c5633 --- /dev/null +++ b/tests/breakpoints_manual_no_callback_1n/node.py @@ -0,0 +1,4 @@ +#!/usr/bin/env python + +def execute(api): + api.log("Running") diff --git a/tests/breakpoints_manual_no_callback_1n/out b/tests/breakpoints_manual_no_callback_1n/out new file mode 100644 index 0000000..defce2c --- /dev/null +++ b/tests/breakpoints_manual_no_callback_1n/out @@ -0,0 +1,3 @@ +[t=0.000,src=n0] Running +[t=0.000,src=n1] Running +[t=10.000,src=esds] Simulation ends diff --git a/tests/breakpoints_manual_no_callback_1n/simulator.py b/tests/breakpoints_manual_no_callback_1n/simulator.py new file mode 100755 index 0000000..fe4b491 --- /dev/null +++ b/tests/breakpoints_manual_no_callback_1n/simulator.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +# Load ESDS +import esds +import numpy as np + +n=2 +B=np.full((n,n),n) +L=np.full((n,n),0) +s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L, "is_wired":False}, "eth0":{"bandwidth":B, "latency":L, "is_wired":True}}) + +s.create_node("node") +s.create_node("node") + +s.run(breakpoints=[1,2,3,10]) |
