Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quality-kpi
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quiring, Ole
quality-kpi
Commits
4646326a
Commit
4646326a
authored
2 years ago
by
Hock, Martin
Browse files
Options
Downloads
Patches
Plain Diff
Move #TODOs to issues
parent
4cc8efe9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
functions/classes.py
+0
-18
0 additions, 18 deletions
functions/classes.py
with
0 additions
and
18 deletions
functions/classes.py
+
0
−
18
View file @
4646326a
...
...
@@ -7,21 +7,6 @@ import uuid
from
typing
import
List
,
Dict
,
Optional
import
json
# TODO
# - Docstrings
# - Beschreibung von Teilen (-> properties) -> Raus aus dem Konstruktor rein in ein dict. (Deep-Copy)
# - Erstmal als Shallow Copy umgesetzt, wir verwenden momentan keine nested dicts
# - Deep Copy erstmal beibehalten auf branch dev-bh
# - Minimalbeispiel für KPIs -> halb umgesetzt -> mit get_components veranschaulichen
# - Änderungen an Beispiel umsetzen
# -> Integriere AggregationLayer und die Funktionen in die Klassen (evtl. per Vererbung?) -> Nä Semester
# - Erlaube Listen bei add_component und add_assembly (-> Nä Semester)
# - Gute String Darstellung -> Ist so schon ok bisher? -> Nä Semester
# - Export als GraphViz -> Nä Semeseter
class
AggregationLayer
(
Enum
):
SYSTEM
=
auto
()
ASSEMBLY
=
auto
()
...
...
@@ -73,7 +58,6 @@ class LegoComponent:
}
return
{
"
component
"
:
dict_
}
# TODO good string representation
def
__str__
(
self
):
return
self
.
__repr__
()
return
(
...
...
@@ -82,7 +66,6 @@ class LegoComponent:
f
"
parent_id=
{
self
.
parent
}
)
"
)
# TODO good repr representation
def
__repr__
(
self
):
return
f
"
LegoComponent
{
self
.
properties
[
'
label
'
]
}
[
{
self
.
uuid
}
]
"
...
...
@@ -201,7 +184,6 @@ class LegoAssembly:
dict_
[
"
assemblies
"
]
=
[
assembly
.
to_dict
()
for
assembly
in
self
.
assemblies
]
return
{
"
assembly
"
:
dict_
}
# TODO find good string representation
def
__repr__
(
self
):
return
f
"
LegoAssembly
{
self
.
properties
[
'
label
'
]
}
[
{
self
.
uuid
}
]
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment