Skip to content
Snippets Groups Projects
Commit adfbc966 authored by zrgt's avatar zrgt
Browse files

Remove name from ZuFaellendeBaeume

parent 15ed405a
No related branches found
No related tags found
No related merge requests found
...@@ -288,7 +288,6 @@ def create_zu_faellende_baeume(): ...@@ -288,7 +288,6 @@ def create_zu_faellende_baeume():
zufaellendebaeume = models.ZuFaellendeBaeume( zufaellendebaeume = models.ZuFaellendeBaeume(
id="https://www.company.com/submodels/zu_faellende_baeume", id="https://www.company.com/submodels/zu_faellende_baeume",
name="Baueme zu faellen",
beschreibung="Baueme sollen demnaechst gefaellt werden", beschreibung="Baueme sollen demnaechst gefaellt werden",
umring=umring, umring=umring,
position=create_standort(), position=create_standort(),
......
...@@ -418,14 +418,12 @@ class Sortiment(SubmodelElementCollection): ...@@ -418,14 +418,12 @@ class Sortiment(SubmodelElementCollection):
class ZuFaellendeBaeume(Submodel): class ZuFaellendeBaeume(Submodel):
def __init__(self, def __init__(self,
id: Identifier, id: Identifier,
name: str,
beschreibung: str, beschreibung: str,
umring: Umring, umring: Umring,
position: Optional[Standort] = None, position: Optional[Standort] = None,
baumliste: Optional[Iterable[StehenderBaum]] = None, baumliste: Optional[Iterable[StehenderBaum]] = None,
): ):
super().__init__(id_=id, **deepcopy(KWARGS[ZU_FAELLENDE_BAEUME])) super().__init__(id_=id, **deepcopy(KWARGS[ZU_FAELLENDE_BAEUME]))
self.add_referable(Property(value=name, **deepcopy(KWARGS[NAME])))
self.add_referable(Property(value=beschreibung, **deepcopy(KWARGS[BESCHREIBUNG]))) self.add_referable(Property(value=beschreibung, **deepcopy(KWARGS[BESCHREIBUNG])))
self.add_referable(umring) self.add_referable(umring)
if position: if position:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment