Relationship#

class ansys.sam.sysml2.meta_model.relationship.Relationship(element_id: str)#

Bases: ansys.sam.sysml2.meta_model.element.Element

Java class ‘com.ansys.metamodel.sysml2.Relationship’.

Overview#

owned_related_element

Get the owned related element property.

owning_related_element

Get the owning related element property.

related_element

Get the related element property.

relationship_owner

Get the relationship owner property.

source

Get the source property.

target

Get the target property.

is_implied

Get the is implied property.

Import detail#

from ansys.sam.sysml2.meta_model.relationship import Relationship

Property detail#

Get the owned related element property.

Returns:
list[“Element”]

Value of property owned related element.

Get the owning related element property.

Returns:
“Element”

Value of property owning related element.

property Relationship.related_element: list[ansys.sam.sysml2.meta_model.element.Element]#

Get the related element property.

Returns:
list[“Element”]

Value of property related element.

property Relationship.relationship_owner: ansys.sam.sysml2.meta_model.element.Element#

Get the relationship owner property.

Returns:
“Element”

Value of property relationship owner.

property Relationship.source: list[ansys.sam.sysml2.meta_model.element.Element]#

Get the source property.

Returns:
list[“Element”]

Value of property source.

property Relationship.target: list[ansys.sam.sysml2.meta_model.element.Element]#

Get the target property.

Returns:
list[“Element”]

Value of property target.

property Relationship.is_implied: bool#

Get the is implied property.

Returns:
bool

Value of property is implied.