Association SysML
- class Association
Implementation of
Associationdefined in the KerML specification.Specification:
An
Associationis aRelationshipand aClassifierto enable classification of links between things (in the universe). The co-domains (types) of theassociation_endFeaturesare therelated_types, as co-domain and participants (linked things) of anAssociationidentify each other.For language description, see section 7.4.5 of the KerML specification. For more details on the model, see section 8.3.4.4.2 of the KerML specification.
Children
Members defined in
Association(12 members)
R
RThe
featuresof theAssociationthat identify the things that can be related by it. A concreteAssociationmust have at least twoassociation_ends. When it has exactly two, theAssociationis called a binaryAssociation.
RWWhether this Relationship was generated by tooling to meet semantic rules, rather than being directly created by a modeler.
RThe related_elements of this Relationship that are owned by the Relationship.
RThe related_element of this Relationship that owns the Relationship, if any.
RThe Elements that are related by this Relationship, derived as the union of the
sourceandtargetElements of the Relationship.
RThe
typesof theassociation_endsof theAssociation, which are therelated_elementsof theAssociationconsidered as aRelationship.
RThe
related_elements from which this Relationship is considered to be directed.
RThe source
related_typefor thisAssociation. It is the firstrelated_typeof theAssociation.
RThe
related_elements from which this Relationship is considered to be directed.
RThe target
related_typesfor thisAssociation. This includes all therelated_typesother than thesource_type.
RThe
related_elementsto which this Relationship is considered to be directed.Members inherited from
Classifier(2 members)
RThe
Classifiersrelated to thisClassifierbyowned_subclassifications.
RThe
owned_specializationsof thisClassifierthat areSubclassifications, for which thisClassifieris thesubclassifier.Members inherited from
Type(36 members)
RThe owned multiplicity that is declared before the children block in the textual syntax.
RSysIDE specific accessor for manipulating
declared_multiplicity.
RThe interpretations of a
Typewithdifferencing_typesare asserted to be those of the first of thoseTypes, but not including those of the remainingTypes. For example, aClassifiermight be the difference of aClassifierfor people and another for people of a particular nationality, leaving people who are not of that nationality. Similarly, a feature of people might be the difference between a feature for their children and aClassifierfor people of a particular sex, identifying their children not of that sex (because the interpretations of the childrenFeaturethat identify those of that sex are also interpretations of theClassifierfor that sex).
RThe
featuresof thisTypethat have a non-nulldirection.
RThe types that related to this
Typethroughowned_disjoinings.
RAll
featuresof thisTypewithis_end = true.
RThe
FeatureMembershipsforfeaturesof thisType, which include allowned_feature_membershipsand thoseinherited_membershipsthat areFeatureMemberships(but does not include anyimported_memberships).
RThe
owned_member_featuresof thefeature_membershipsof thisType.
RThe specializations and conjugations owned by this
Type.
RAll the
member_featuresof theinherited_membershipsof thisTypethat areFeatureMemberships.
RAll
Membershipsinherited by thisTypeviaSpecializationorConjugation. These are included in the derived union for themembershipsof theType.
RAll
featuresrelated to thisTypebyFeatureMembershipsthat havedirectioninorinout.
RThe interpretations of a
Typewithintersecting_typesare asserted to be those in common among theintersecting_types, which are theTypesderived from theintersecting_typeof theowned_intersectingsof thisType. For example, aClassifiermight be an intersection ofClassifiersfor people of a particular sex and of a particular nationality. Similarly, a feature for people’s children of a particular sex might be the intersection of aFeaturefor their children and aClassifierfor people of that sex (because the interpretations of the childrenFeaturethat identify those of that sex are also interpretations of the Classifier for that sex).
RWIndicates whether instances of this
Typemust also be instances of at least one of its specializedTypes.
RIndicates whether this
Typehas anowned_conjugator.
RWWhether all things that meet the classification conditions of this
Typemust be classified by theType.
RReturns
Trueif thisTypewas declared assufficientin the textual syntax.
RAn
owned_memberof thisTypethat is aMultiplicity, which constraints the cardinality of theType. If there is no suchowned_member, then the cardinality of thisTypeis constrained by all theMultiplicityconstraints applicable to any direct supertypes.
RAll
featuresrelated to thisTypebyFeatureMembershipsthat havedirectionoutorinout.
RA
Conjugationowned by thisTypefor which theTypeis theoriginal_type.
RThe
owned_relationshipsof thisTypethat areDifferencings, having thisTypeas theirtype_differenced.
RThe
directed_featuresthat are owned by thisType.
RThe
owned_relationshipsof thisTypethat areDisjoinings, for which theTypeis thetype_disjoinedType.
RAll
end_featuresof thisTypethat areowned_features.
RThe
owned_membershipsof thisTypethat areFeatureMemberships, for which theTypeis theowning_type. Each suchFeatureMembershipidentifies anowned_featureof theType.
RThe
owned_member_featuresof theowned_feature_membershipsof thisType.
RThe
inputsthat are owned by thisType.
RThe
owned_relationshipsof thisTypethat areIntersectings, have theTypeas theirtype_intersected.
RThe
outputsthat are owned by thisType.
RThe
owned_relationshipsof thisTypethat areSpecializations, for which theTypeis thespecificType.
RThe
owned_relationshipsof thisTypethat areUnionings, having theTypeas theirtype_unioned.
RThe other type, feature relationships and
FeatureChainingsowned by thisType.
RThe interpretations of a
Typewithunioning_typesare asserted to be the same as those of all theunioning_typestogether, which are theTypesderived from theunioning_typeof theowned_unioningsof thisType. For example, aClassifierfor people might be the union ofClassifiersfor all the sexes. Similarly, a feature for people’s children might be the union of features dividing them in the same ways as people in general.
Members inherited from
Namespace(10 members)
RThe elements enclosed by curly brackets in textual syntax.
RThe set of all member
Elementsof thisNamespace, which are themember_elementsof allmembershipsof theNamespace.
RAll
Membershipsin thisNamespace, including (at least) the union ofowned_membershipsandimported_memberships.
RThe
owned_relationshipsof thisNamespacethat areImports, for which theNamespaceis theimport_owning_namespace.
RThe owned
membersof thisNamespace, which are theowned_member_elementsof theowned_membershipsof theNamespace.
RThe
owned_relationshipsof thisNamespacethat areMemberships, for which theNamespaceis themembership_owning_namespace.
RMetadata prefixes, prefixed with
#in textual syntax.
Members inherited from
Element(23 members)
RThe owned
Commentsrelated byowned_relationships.
RWThe declared name of this
Element.
RWAn optional alternative name for the
Elementthat is intended to be shorter or in some way more succinct than its primaryname. It may act as a modeler-specified identifier for theElement, though it is then the responsibility of the modeler to maintain the uniqueness of this identifier within a model or relative to some other context.
RThe Documentation owned by this Element.
RW- 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.
RWhether all necessary implied Relationships have been included in the
owned_relationshipsof this Element. This property may be true, even if there are not actually anyowned_relationshipswithis_implied = true, meaning that no such Relationships are actually implied for this Element. However, if it is false, thenowned_relationshipsmay not contain any implied Relationships. That is, either all required implied Relationships must be included, or none of them.
RWhether this Element is contained in the ownership tree of a library model.
RThe owned metadata related by
owned_relationships.
RThe name to be used for this
Elementduring name resolution within itsowning_namespace. This is derived using theeffective_name()operation. By default, it is the same as thedeclared_name, but this is overridden for certain kinds ofElementsto compute anameeven when thedeclared_nameis null.
RThe
owned_relationshipsof thisElementthat areAnnotations, for which thisElementis theannotated_element.
RThe Elements owned by this Element, derived as the owned_related_elements of the owned_relationships of this Element.
RThe Relationships for which this Element is the owning_related_element.
RThe owner of this Element, derived as the
owning_related_elementof theowning_relationshipof this Element, if any.
RThe
owning_relationshipof thisElement, if thatRelationshipis aMembership.
RThe
Namespacethat owns thisElement, which is themembership_owning_namespaceof theowning_membershipof thisElement, if any.
RThe Relationship for which this Element is an owned_related_element, if any.
RThe full ownership-qualified name of this
Element, represented in a form that is valid according to the KerML textual concrete syntax for qualified names (including use of unrestricted name notation and escaped characters, as necessary). Thequalified_nameis null if thisElementhas noowning_namespaceor if there is not a complete ownership chain of namedNamespacesfrom a rootNamespaceto thisElement.
RThe owner of this
Elementas the parent ofowning_membershiporowning_relationshipotherwise.
RWThe state of semantic resolution for this
Element. Based on this, sema may skip elements to avoid duplicate work, e.g. when resolving elements in a group of related documents.
RThe short name to be used for this
Elementduring name resolution within itsowning_namespace. This is derived using theeffective_short_name()operation. By default, it is the same as thedeclared_short_name, but this is overridden for certain kinds ofElementsto compute ashort_nameeven when thedeclared_nameis null.
RThe
TextualRepresentationsthat annotate thisElement.
Members inherited from
AstNode(7 members) Attributes
- STD: tuple[Union[type[syside.Association], type[ConnectionDefinition], type[FlowConnectionDefinition]], ...] = ()
- property association_ends: syside.LazyIterator[syside.Feature]
The
featuresof theAssociationthat identify the things that can be related by it. A concreteAssociationmust have at least twoassociation_ends. When it has exactly two, theAssociationis called a binaryAssociation.association_with_end
- property is_implied: bool
Whether this Relationship was generated by tooling to meet semantic rules, rather than being directly created by a modeler.
The related_elements of this Relationship that are owned by the Relationship.
The related_element of this Relationship that owns the Relationship, if any.
The Elements that are related by this Relationship, derived as the union of the
sourceandtargetElements of the Relationship.relationship
The
typesof theassociation_endsof theAssociation, which are therelated_elementsof theAssociationconsidered as aRelationship.association
- property source: syside.Feature | None
The
related_elements from which this Relationship is considered to be directed.source_relationship
- property source_type: syside.Type | None
The source
related_typefor thisAssociation. It is the firstrelated_typeof theAssociation.source_association
- property sources: list[syside.Feature]
The
related_elements from which this Relationship is considered to be directed.source_relationship
- property target_types: syside.LazyIterator[syside.Type]
The target
related_typesfor thisAssociation. This includes all therelated_typesother than thesource_type.target_association
- property targets: syside.LazyIterator[syside.Feature]
The
related_elementsto which this Relationship is considered to be directed.target_relationship