Skip to content

Commit

Permalink
merge: Implement System/LogicalFunction.involved_in (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuestengecko committed Mar 27, 2024
2 parents 2c78c64 + f6807fe commit 9c84796
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions capellambse/model/layers/ctx.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,13 @@ class SystemAnalysis(crosslayer.BaseArchitectureLayer):
SystemFunction, "realized_operational_activities", aslist=c.ElementList
),
)
c.set_accessor(
SystemFunction,
"involved_in",
c.ReferenceSearchingAccessor(
Capability, "involved_functions", aslist=c.ElementList
),
)
c.set_self_references(
(MissionPkg, "packages"),
(SystemComponent, "components"),
Expand Down
7 changes: 7 additions & 0 deletions capellambse/model/layers/la.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,13 @@ class LogicalArchitecture(crosslayer.BaseArchitectureLayer):
aslist=c.ElementList,
),
)
c.set_accessor(
LogicalFunction,
"involved_in",
c.ReferenceSearchingAccessor(
CapabilityRealization, "involved_functions", aslist=c.ElementList
),
)
c.set_self_references(
(LogicalComponent, "components"),
(LogicalComponentPkg, "packages"),
Expand Down

0 comments on commit 9c84796

Please sign in to comment.