Composite Structure
Inspect the internal runtime wiring of a structured classifier with parts, ports, and delegation/assembly connectors.
| 1 | dialect uml; |
| 2 | |
| 3 | uml::composite_structure_diagram "High-Frequency Financial Trading Node" { |
| 4 | schema { |
| 5 | classifier @TradingGateway [label: "Ultra-Low-Latency Order Gateway"] { |
| 6 | port @feedIn: MarketDataFeed offers IMarketFeed [dock: left, label: "ITCH/OUCH Feed"]; |
| 7 | port @adminIn: AdminConsole offers IAdminControl [dock: top, label: "Admin :9090"]; |
| 8 | port @auditOut: AuditStream offers IAuditEvents [dock: right, label: "Audit RingBuffer"]; |
| 9 | |
| 10 | part @rateLimiter: IngressRateLimiter; |
| 11 | part @orderBookMatcher: MatchingEngine; |
| 12 | part @riskGuard: PreTradeRiskFilter; |
| 13 | part @journaler: NvmeJournaler; |
| 14 | } |
| 15 | |
| 16 | collaboration @OrderExecutionCollaboration { |
| 17 | role @marketFeed: MarketDataFeed; |
| 18 | role @riskChecker: PreTradeRiskFilter; |
| 19 | role @matchingCore: MatchingEngine; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | flow { |
| 24 | feedIn <-> delegate rateLimiter.rawFeedIn; |
| 25 | adminIn <-> delegate riskGuard.adminIn; |
| 26 | rateLimiter.filteredOut <-> assembly riskGuard.ingressPort; |
| 27 | riskGuard.approvedOut <-> assembly orderBookMatcher.orderIn; |
| 28 | orderBookMatcher.auditPort <-> delegate auditOut; |
| 29 | riskGuard.journalPort <-> assembly journaler.writePort; |
| 30 | } |
| 31 | } |
| 32 | |
Errors: 0 | composite-structure-diagram
Core Syntax Reference
| Construct | Purpose |
|---|---|
part @engine: MatchingEngine; | Declare internal structural parts |
port @fixIn; | Expose interaction points on classifier boundaries |