Skip to content

Commit

Permalink
merge: Add ExchangeItemInstance support (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuestengecko committed Nov 7, 2024
2 parents 2ff2740 + de7225a commit f2d94ec
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions capellambse/metamodel/information/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ class ExchangeItem(m.ModelElement):
)
elements = m.DirectProxyAccessor(ExchangeItemElement, aslist=m.ElementList)
exchanges: m.Accessor[m.ModelElement]
instances: m.RoleTagAccessor


@m.xtype_handler(None)
class ExchangeItemInstance(Property):
pass


m.set_accessor(
Expand Down Expand Up @@ -262,3 +268,12 @@ class ExchangeItem(m.ModelElement):
Class, "realized_classes", aslist=m.ElementList
),
)
m.set_accessor(
ExchangeItem,
"instances",
m.RoleTagAccessor(
"ownedExchangeItemInstances",
ExchangeItemInstance,
aslist=m.ElementList,
),
)

0 comments on commit f2d94ec

Please sign in to comment.