Commit e35edbd9 authored by Hejing Li's avatar Hejing Li
Browse files

system/base.py: add_component function fix

parent 2f347271
......@@ -28,10 +28,11 @@ class System:
"""Defines System configuration of the whole simulation"""
def __init__(self) -> None:
self.hosts: list[Component] = []
self.all_component: list[Component] = []
def add_component(self, c: Component) -> None:
assert c.system == self
self.all_component.append(c)
class IdObj(abc.ABC):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment