mirror of
https://github.com/logos-storage/das-research.git
synced 2026-02-24 06:53:07 +00:00
restart simulation between runs
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
a8b496e4dd
commit
6d8fd94bf6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user