Skip to content
Snippets Groups Projects
Commit 4646326a authored by Hock, Martin's avatar Hock, Martin
Browse files

Move #TODOs to issues

parent 4cc8efe9
No related branches found
No related tags found
1 merge request!3Merge to main to create "WS2223" Version
Pipeline #929015 failed
...@@ -7,21 +7,6 @@ import uuid ...@@ -7,21 +7,6 @@ import uuid
from typing import List, Dict, Optional from typing import List, Dict, Optional
import json 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): class AggregationLayer(Enum):
SYSTEM = auto() SYSTEM = auto()
ASSEMBLY = auto() ASSEMBLY = auto()
...@@ -73,7 +58,6 @@ class LegoComponent: ...@@ -73,7 +58,6 @@ class LegoComponent:
} }
return {"component": dict_} return {"component": dict_}
# TODO good string representation
def __str__(self): def __str__(self):
return self.__repr__() return self.__repr__()
return ( return (
...@@ -82,7 +66,6 @@ class LegoComponent: ...@@ -82,7 +66,6 @@ class LegoComponent:
f"parent_id={self.parent})" f"parent_id={self.parent})"
) )
# TODO good repr representation
def __repr__(self): def __repr__(self):
return f"LegoComponent {self.properties['label']} [{self.uuid}]" return f"LegoComponent {self.properties['label']} [{self.uuid}]"
...@@ -201,7 +184,6 @@ class LegoAssembly: ...@@ -201,7 +184,6 @@ class LegoAssembly:
dict_["assemblies"] = [assembly.to_dict() for assembly in self.assemblies] dict_["assemblies"] = [assembly.to_dict() for assembly in self.assemblies]
return {"assembly": dict_} return {"assembly": dict_}
# TODO find good string representation
def __repr__(self): def __repr__(self):
return f"LegoAssembly {self.properties['label']} [{self.uuid}]" return f"LegoAssembly {self.properties['label']} [{self.uuid}]"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment