exchanges
ExchangeCollector 🔗
ExchangeCollector(diagram: context.InterfaceContextDiagram | context.FunctionalContextDiagram, data: _elkjs.ELKInputData, params: dict[str, t.Any])
Base class for context collection on Exchanges.
Source code in capellambse_context_diagrams/collectors/exchanges.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
collect
abstractmethod
🔗
collect() -> None
Populate the elkdata container.
Source code in capellambse_context_diagrams/collectors/exchanges.py
100 101 102 103 |
|
update_children_size 🔗
update_children_size(data: _elkjs.ELKInputChild, exchanges: t.Sequence[_elkjs.ELKInputEdge]) -> None
Adjust size of functions.
Source code in capellambse_context_diagrams/collectors/exchanges.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
InterfaceContextCollector 🔗
InterfaceContextCollector(diagram: context.InterfaceContextDiagram, data: _elkjs.ELKInputData, params: dict[str, t.Any])
Bases: ExchangeCollector
Collect necessary
_elkjs.ELKInputData
for building the interface context.
Source code in capellambse_context_diagrams/collectors/exchanges.py
136 137 138 139 140 141 142 143 144 145 146 147 |
|
left
instance-attribute
🔗
left: ELKInputChild | None = None
Left (source) Component Box of the interface.
right
instance-attribute
🔗
right: ELKInputChild | None = None
Right (target) Component Box of the interface.
add_interface 🔗
add_interface() -> None
Add the ComponentExchange (interface) to the collected data.
Source code in capellambse_context_diagrams/collectors/exchanges.py
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
|
collect 🔗
collect() -> None
Collect all allocated FunctionalExchange
s in the context.
Source code in capellambse_context_diagrams/collectors/exchanges.py
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 |
|
PhysicalLinkContextCollector 🔗
PhysicalLinkContextCollector(diagram: context.InterfaceContextDiagram, data: _elkjs.ELKInputData, params: dict[str, t.Any])
Bases: ExchangeCollector
Collect necessary
_elkjs.ELKInputData
for building the PhysicalLink
context.
Source code in capellambse_context_diagrams/collectors/exchanges.py
329 330 331 332 333 334 335 336 337 338 |
|
add_interface 🔗
add_interface() -> None
Add the ComponentExchange (interface) to the collected data.
Source code in capellambse_context_diagrams/collectors/exchanges.py
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 |
|
collect 🔗
collect() -> None
Collect all allocated PhysicalLink
s in the context.
Source code in capellambse_context_diagrams/collectors/exchanges.py
409 410 411 412 413 |
|
get_source_and_target_ports 🔗
get_source_and_target_ports(src: m.ModelElement, tgt: m.ModelElement) -> tuple[_elkjs.ELKInputPort, _elkjs.ELKInputPort]
Return the source and target ports of the interface.
Source code in capellambse_context_diagrams/collectors/exchanges.py
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 |
|
get_elkdata_for_exchanges 🔗
get_elkdata_for_exchanges(diagram: context.InterfaceContextDiagram | context.FunctionalContextDiagram, collector_type: type[ExchangeCollector], params: dict[str, t.Any]) -> _elkjs.ELKInputData
Return exchange data for ELK.
Source code in capellambse_context_diagrams/collectors/exchanges.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
|
is_hierarchical 🔗
is_hierarchical(ex: m.ModelElement, box: _elkjs.ELKInputChild, key: t.Literal['ports'] | t.Literal['children'] = 'ports') -> bool
Check if the exchange is hierarchical (nested) inside box
.
Source code in capellambse_context_diagrams/collectors/exchanges.py
429 430 431 432 433 434 435 436 437 438 439 440 441 |
|