capellambse_context_diagrams
The Context Diagrams model extension.
This extension adds a new property to many model elements called
context_diagram
, which allows access automatically generated diagrams
of an element's "context".
The context of an element is defined as the collection of the element itself, its ports, the exchanges that flow into or out of the ports, as well as the ports on the other side of the exchange and the ports' direct parent elements.
The element of interest uses the regular styling (configurable via function), other elements use a white background color to distinguish them.
init 🔗
init() -> None
Initialize the extension.
Source code in capellambse_context_diagrams/__init__.py
63 64 65 66 67 68 69 70 |
|
install_elk 🔗
install_elk() -> None
Install elk.js and its dependencies into the local cache directory.
When rendering a context diagram, elk.js will be installed automatically into a persistent local cache directory. This function may be called while building a container, starting a server or similar tasks in order to prepare the elk.js execution environment ahead of time.
Source code in capellambse_context_diagrams/__init__.py
51 52 53 54 55 56 57 58 59 60 |
|
register_cable_tree_view 🔗
register_cable_tree_view() -> None
Add the cable_tree_view
attribute to PhysicalLink
s.
Source code in capellambse_context_diagrams/__init__.py
311 312 313 314 315 316 317 318 319 320 |
|
register_classes 🔗
register_classes() -> None
Add the context_diagram
property to the relevant model objects.
Source code in capellambse_context_diagrams/__init__.py
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 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|
register_functional_context 🔗
register_functional_context() -> None
Add the functional_context_diagram
attribute to ModelObject
s.
Full of bugs
The functional context diagrams will be available soon.
Source code in capellambse_context_diagrams/__init__.py
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
register_interface_context 🔗
register_interface_context() -> None
Add the context_diagram
property to interface model objects.
Source code in capellambse_context_diagrams/__init__.py
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
|
register_realization_view 🔗
register_realization_view() -> None
Add the realization_view
attribute to various objects.
Adds realization_view
to Activities, Functions and Components
of all layers.
Source code in capellambse_context_diagrams/__init__.py
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
|
register_tree_view 🔗
register_tree_view() -> None
Add the tree_view
attribute to Class
es.
Source code in capellambse_context_diagrams/__init__.py
255 256 257 258 259 260 261 |
|