summaryrefslogtreecommitdiff
path: root/esds/simulator.py
diff options
context:
space:
mode:
Diffstat (limited to 'esds/simulator.py')
-rw-r--r--esds/simulator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/esds/simulator.py b/esds/simulator.py
index adb2011..2e69884 100644
--- a/esds/simulator.py
+++ b/esds/simulator.py
@@ -26,7 +26,7 @@ class Simulator:
be handle before any other one. That way after a wait, nodes a ready perform receivet() with timeout=0.
"""
- def __init__(self,netmat):
+ def __init__(self,netmat,debug_file_path="./esds.debug"):
"""
Format of netmat: { "interface": {"bandwidth": numpy_matrix_2D, "latency": numpy_matrix_2D, "is_wired":bool}}
For wireless interfaces the diagonals of the bandwidth and latency matrices are very important.
@@ -45,7 +45,7 @@ class Simulator:
self.events_dirty=True # For optimization reasons
self.startat=-1
self.time=0
- self.debug_file_path="./esds.debug"
+ self.debug_file_path=debug_file_path
self.precision=".3f"
self.interferences=True
self.wait_end_nodes=list() # Keep track of nodes that wait for the end of the simulation