Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
e35edbd9
Commit
e35edbd9
authored
Sep 04, 2024
by
Hejing Li
Browse files
system/base.py: add_component function fix
parent
2f347271
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
experiments/simbricks/orchestration/system/base.py
experiments/simbricks/orchestration/system/base.py
+2
-1
No files found.
experiments/simbricks/orchestration/system/base.py
View file @
e35edbd9
...
@@ -28,10 +28,11 @@ class System:
...
@@ -28,10 +28,11 @@ class System:
"""Defines System configuration of the whole simulation"""
"""Defines System configuration of the whole simulation"""
def
__init__
(
self
)
->
None
:
def
__init__
(
self
)
->
None
:
self
.
hosts
:
list
[
Component
]
=
[]
self
.
all_component
:
list
[
Component
]
=
[]
def
add_component
(
self
,
c
:
Component
)
->
None
:
def
add_component
(
self
,
c
:
Component
)
->
None
:
assert
c
.
system
==
self
assert
c
.
system
==
self
self
.
all_component
.
append
(
c
)
class
IdObj
(
abc
.
ABC
):
class
IdObj
(
abc
.
ABC
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment