restart simulation between runs

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-03-01 14:35:57 +01:00
parent a8b496e4dd
commit 6d8fd94bf6
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E

View File

@ -73,6 +73,12 @@ class Sim:
Simulation initialization method
:param run_number: the index of the simulation to be run
"""
# current simulation time
self.time = 0
# queue of events, implemented as a heap
self.queue = []
# list of nodes
self.nodes = []
# get simulation duration
self.duration = 1000
# get seeds. each seed generates a simulation repetition