generated from Hochfrequenz/python_template_repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93696df
commit 8babf02
Showing
5 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
""" | ||
contains class for trees consisting of segments of mig tables | ||
""" | ||
|
||
from migmose.mig.nachrichtenstrukturzeile import NachrichtenstrukturZeile | ||
|
||
|
||
class BaumSegmentGruppe(NachrichtenstrukturZeile): | ||
"""will contain the tree structure of nachrichtenstruktur tables""" | ||
|
||
segmente: list[NachrichtenstrukturZeile] | ||
segmentgruppe: list["BaumSegmentGruppe"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
contains class mig tables | ||
""" | ||
|
||
from pydantic import BaseModel | ||
|
||
from migmose.mig.nachrichtenstrukturzeile import NachrichtenstrukturZeile | ||
|
||
|
||
class NachrichtenstrukturTabelle(BaseModel): | ||
""" | ||
class for mig tables | ||
""" | ||
|
||
lines: list[NachrichtenstrukturZeile] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
""" | ||
contains class for lines in mig tables | ||
""" | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class NachrichtenstrukturZeile(BaseModel): | ||
""" | ||
class for lines in mig tables | ||
""" | ||
|
||
zaehler: str | ||
nr: str | ||
bezeichnung: str | ||
standard_status: str | ||
bdew_status: str | ||
standard_maximale_wiederholungen: int | ||
bdew_maximale_wiederholungen: int | ||
ebene: int | ||
inhalt: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
""" | ||
contains class for structured segmentgroups in mig tables. builds table recursively. | ||
""" | ||
|
||
from migmose.mig.zeile import NachrichtenStrukturZeile | ||
|
||
|
||
class SegmentGruppe(NachrichtenStrukturZeile): | ||
""" | ||
class for structured segmentgroups in mig tables. builds table recursively. inherits from NachrichtenstrukturZeile | ||
""" | ||
|
||
segmente: list[NachrichtenStrukturZeile] | ||
segmentgruppe: list["SegmentGruppe"] |