DataFlow View Diagram🔗
The
.data_flow_view attribute is accessable the following class types:
OperationalCapability🔗
DataFlow View Diagram of OperationalCapability
import capellambse
model = capellambse.MelodyModel("tests/data/ContextDiagram.aird")
diag = model.by_uuid("3b83b4ba-671a-4de8-9c07-a5c6b1d3c422").data_flow_view
diag.as_svgdiagram.save(pretty=True)
Capability🔗
DataFlow View Diagram of Capability
import capellambse
model = capellambse.MelodyModel("tests/data/ContextDiagram.aird")
diag = model.by_uuid("9390b7d5-598a-42db-bef8-23677e45ba06").data_flow_view
diag.as_svgdiagram.save(pretty=True)
CapabilityRealization🔗
DataFlow View Diagram of CapabilityRealization
import capellambse
model = capellambse.MelodyModel("tests/data/ContextDiagram.aird")
diag = model.by_uuid("72147e11-70df-499b-a339-b81722271f1a").data_flow_view
diag.as_svgdiagram.save(pretty=True)
The data flow diagram is similar to the generic context
diagram but it collects differently. Here collection is done from the outside
to the inside, meaning it starts on the involved functions and collects the
edges from there if they exist. This results in revealing missing edges and
possible modelling errors. The diagram elements are collected from the
.involved_activities or .involved_functions attribute.
Check out the code🔗
To understand the collection have a look into the
data_flow_view
module.