Conjugation
Conjugation
is defined in KerML specification on
page 54.
Excerpt from the machine readable specification:
Conjugation
is aRelationship
between two types in which theconjugatedType
inherits all theFeatures
of theoriginalType
, but with allinput
andoutput
Features
reversed. That is, anyFeatures
with adirection
in relative to theoriginalType
are considered to have an effectivedirection
of out relative to theconjugatedType
and, similarly,Features
withdirection
out in theoriginalType
are considered to have an effectivedirection
of in in theconjugatedType
.Features
withdirection
inout, or with nodirection
, in theoriginalType
, are inherited without change.A
Type
may participate as aconjugatedType
in at most oneConjugation
relationship, and such aType
may not also be thespecific
Type
in anySpecialization
relationship.
The following diagram shows the inheritance hierarchy of Conjugation
according to the specification:
![// Class: Conjugation
digraph {
Conjugation [label="Conjugation (KerML)" shape=plaintext]
Relationship -> Conjugation
Relationship [label="Relationship (KerML)" shape=plaintext]
Element -> Relationship
Element [label="Element (KerML)" shape=plaintext]
}](../../../_images/graphviz-90a63be9de1aef189006f36d705c471380c822d9.png)
The following table shows all attributes defined for
Conjugation
according to the specification together with
the documentation from the machine readable specification. Note
that in SysIDE API, we use snake case for attribute names
instead of Pascal case used in the specification.
Attribute |
Documentation from machine readable specification |
Attributes defined in |
|
The |
|
The |
|
The |
|
Attributes defined in |
|
Whether this Relationship was generated by tooling to meet semantic rules, rather than being directly created by a modeler. |
|
The relatedElements of this Relationship that are owned by the Relationship. |
|
The relatedElement of this Relationship that owns the Relationship, if any. |
|
The Elements that are related by this Relationship, derived as the union
of the |
|
The
|
|
The |
|
Attributes defined in |
|
The declared name of this |
|
An optional alternative name for the |
|
The Documentation owned by this Element. |
|
The globally unique identifier for this Element. This is intended to be set by tooling, and it must not change during the lifetime of the Element. |
|
Whether all necessary implied Relationships have been included in the
|
|
Whether this Element is contained in the ownership tree of a library model. |
|
The name to be used for this |
|
The |
|
The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of this Element. |
|
The Relationships for which this Element is the owningRelatedElement. |
|
The owner of this Element, derived as the |
|
The |
|
The |
|
The Relationship for which this Element is an ownedRelatedElement, if any. |
|
The full ownership-qualified name of this |
|
The short name to be used for this |
|
The |
The following table lists SysIDE specific attributes available for
class Conjugation
:
Python Attribute |
- class Conjugation
-
- STD: tuple[type[syside.Conjugation], ...] = ()
- property original_type: syside.Type | None
- property conjugated_type: syside.Type | None
- property owning_type: syside.Type | None
- property children: syside.RelationshipBody
- property original_type_target: syside.ChainedTypeReference
- property conjugated_type_target: syside.ChainedTypeReference