Clear link load in new timestep

This commit is contained in:
Marek Wolan
2024-02-20 11:05:09 +00:00
parent 945db1341b
commit 701781b23e

View File

@@ -599,6 +599,11 @@ class Link(SimComponent):
def __str__(self) -> str:
return f"{self.endpoint_a}<-->{self.endpoint_b}"
def apply_timestep(self, timestep: int) -> None:
"""Apply a timestep to the simulation."""
super().apply_timestep(timestep)
self.current_load = 0.0
class ARPCache:
"""