helpers
get_model_object 🔗
get_model_object(model: MelodyModel, uuid: str) -> m.ModelElement | None
Try to return a Capella model element.
Source code in src/capellambse_context_diagrams/helpers.py
8 9 10 11 12 13 | |
has_same_type 🔗
has_same_type(obj1: ModelElement, obj2: ModelElement) -> bool
Check if two model elements have the same type.
Source code in src/capellambse_context_diagrams/helpers.py
16 17 18 | |
is_allocation 🔗
is_allocation(obj: ModelElement) -> bool
Check if the object is an allocation.
Source code in src/capellambse_context_diagrams/helpers.py
41 42 43 | |
is_exchange 🔗
is_exchange(obj: ModelElement) -> bool
Check if the object is an exchange.
Source code in src/capellambse_context_diagrams/helpers.py
36 37 38 | |
is_function 🔗
is_function(obj: ModelElement) -> bool
Check if the object is a function.
Source code in src/capellambse_context_diagrams/helpers.py
21 22 23 | |
is_functional_chain 🔗
is_functional_chain(obj: ModelElement) -> bool
Check if the object is a functional chain or operational process.
Source code in src/capellambse_context_diagrams/helpers.py
46 47 48 49 50 | |
is_part 🔗
is_part(obj: ModelElement) -> bool
Check if the object is a part.
Source code in src/capellambse_context_diagrams/helpers.py
26 27 28 | |
is_port 🔗
is_port(obj: ModelElement) -> bool
Check if the object is a port.
Source code in src/capellambse_context_diagrams/helpers.py
31 32 33 | |