Skip to main content

Composite Structure Diagram(组合结构图)· ⚠️ Simplified

分类: Structure Diagrams(静态结构)| OMG UML 2.x ID: Composite Structures

描述一个组件/类的内部结构(parts + connectors)。Parts 是物理嵌套,不是视觉分组。

moqi-uml v0.1 能力:

  • ✅ Group 把 parts 视觉上包裹
  • ❌ 无 native nested parts(Group 不是语义嵌套,只是视觉框)
  • ❌ 无 port / connector 语义
  • 后续版本: SemanticDiagram 增加 native children 字段
Structure · ⚠️ Simplified

Composite Structure Diagram

OrderManagement internal parts — group visualizes the composite boundary, but no semantic nesting yet.

{ "preset": "signal-flow", "theme": "light", "direction": "TB", "nodes": [ { "id": "op", "label": "OrderPart", "kind": "backend", "group": "inside" }, { "id": "ip", "label": "InventoryPart", "kind": "backend", "group": "inside" }, { "id": "pp", "label": "PaymentPart", "kind": "backend", "group": "inside" }, { "id": "db", "label": "Database", "kind": "database" }, { "id": "auth", "label": "AuthService", "kind": "security" } ], "groups": [ { "id": "inside", "label": "OrderManagement internal parts" } ], "edges": [ { "from": "op", "to": "ip", "label": "sync stock" }, { "from": "op", "to": "pp", "label": "request pay" }, { "from": "op", "to": "db", "label": "persist" }, { "from": "pp", "to": "auth", "label": "verify" } ] }