Skip to content

Commit

Permalink
Merge pull request #340 from andlaus/oid
Browse files Browse the repository at this point in the history
Introduce OID attributes
  • Loading branch information
andlaus committed Sep 10, 2024
2 parents b18d046 + efd8d2f commit b452b60
Show file tree
Hide file tree
Showing 42 changed files with 400 additions and 60 deletions.
6 changes: 6 additions & 0 deletions examples/mksomersaultmodifiedpdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ def find_named_object(item_list: List[T], name: str) -> T:
# add a new "flic-flac" service
flic_flac_request = Request(
odx_id=OdxLinkId("somersault.RQ.flic_flac", doc_frags),
oid=None,
short_name="RQ_flic_flac",
long_name=None,
description=None,
admin_data=None,
sdgs=[],
parameters=NamedItemList([
CodedConstParameter(
oid=None,
short_name="sid",
long_name=None,
semantic=None,
Expand All @@ -125,6 +127,7 @@ def find_named_object(item_list: List[T], name: str) -> T:

flic_flac_positive_response = Response(
odx_id=OdxLinkId("somersault.PR.flic_flac", doc_frags),
oid=None,
short_name="PR_flic_flac",
long_name=None,
description=None,
Expand All @@ -133,6 +136,7 @@ def find_named_object(item_list: List[T], name: str) -> T:
response_type=ResponseType.POSITIVE,
parameters=NamedItemList([
CodedConstParameter(
oid=None,
short_name="sid",
long_name=None,
semantic=None,
Expand All @@ -144,6 +148,7 @@ def find_named_object(item_list: List[T], name: str) -> T:
sdgs=[],
),
ValueParameter(
oid=None,
short_name="can_do_backward_flips",
long_name=None,
semantic=None,
Expand All @@ -162,6 +167,7 @@ def find_named_object(item_list: List[T], name: str) -> T:

flic_flac_service = DiagService(
odx_id=OdxLinkId("somersault.service.flic_flac", doc_frags),
oid=None,
short_name="flic_flac",
long_name=None,
description=None,
Expand Down
Loading

0 comments on commit b452b60

Please sign in to comment.