Subsetting
Subsetting
is defined in KerML specification on
page 61.
Excerpt from the machine readable specification:
Subsetting
isSpecialization
in which thespecific
andgeneral
Types
areFeatures
. This means all values of thesubsettingFeature
(on instances of its domain, i.e., the intersection of itsfeaturingTypes
) are values of thesubsettedFeature
on instances of its domain. To support this the domain of thesubsettingFeature
must be the same or specialize (at least indirectly) the domain of thesubsettedFeature
(viaSpecialization
), and the co-domain (intersection of thetypes
) of thesubsettingFeature
must specialize the co-domain of thesubsettedFeature
.
The following diagram shows the inheritance hierarchy of Subsetting
according to the specification:
![// Class: Subsetting
digraph {
Subsetting [label="Subsetting (KerML)" shape=plaintext]
Specialization -> Subsetting
Specialization [label="Specialization (KerML)" shape=plaintext]
Relationship -> Specialization
Relationship [label="Relationship (KerML)" shape=plaintext]
Element -> Relationship
Element [label="Element (KerML)" shape=plaintext]
}](../../../_images/graphviz-1a334cc4ca7d4933ba75844270ab0ffe3f713390.png)
The following table shows all attributes defined for
Subsetting
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 |
|
A |
|
The |
|
The |
|
Attributes defined in |
|
A |
|
The |
|
A |
|
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 Subsetting
:
Python Attribute |
- class Subsetting
-
- STD: tuple[type[syside.Subsetting], ...] = ()
- property subsetted_feature: syside.Feature | None
- property subsetting_feature: syside.Feature | None
- property owning_feature: syside.Feature | None
- property subsetted_feature_target: syside.ChainedFeatureReference
- property subsetting_feature_target: syside.ChainedFeatureReference
- property general: syside.Type | None
- property specific: syside.Type | None
- property owning_type: syside.Type | None
- property children: syside.RelationshipBody
- property specific_target: syside.ChainedTypeReference
- property general_target: syside.ChainedTypeReference
- property visibility: syside.VisibilityKind
- try_set_visibility(arg: syside.VisibilityKind | None) bool
- property sources: syside.ContainerView[syside.Element]
- property targets: syside.ContainerView[syside.Element]
- property first_source: syside.Element | None
- property first_target: syside.Element | None
- property sema_state: syside.SemaState
- property qualified_name: syside.QualifiedName | None
- property owning_membership: syside.OwningMembership | None
- property owned_relationships: syside.LazyIterator[syside.Relationship]
- property owning_relationship: syside.Relationship | None
- property owning_namespace: syside.Namespace | None
- property owner: syside.Element | None
- property scoped_owner: syside.Element | None
- property owned_elements: syside.LazyIterator[syside.Element]
- property documentation: syside.LazyIterator[syside.Documentation]
- property owned_annotations: syside.LazyIterator[syside.Annotation]
- property comments: syside.LazyIterator[syside.Comment]
- property textual_representations: syside.LazyIterator[syside.TextualRepresentation]
- property metadata: syside.LazyIterator[syside.MetadataFeature | syside.MetadataUsage]
- isinstance(type: tuple[syside.AstNode.isinstance.type[syside.TNode], ...]) TypeGuard[syside.TNode]
- try_cast(type: tuple[syside.AstNode.try_cast.type[syside.TNode], ...]) syside.TNode | None
- cast(type: tuple[syside.AstNode.cast.type[syside.TNode], ...]) syside.TNode
- property parent: syside.Element | None
- property document: syside.Document
- property cst_node: syside.CstNode | None