Type SysML
- class Type
Implementation of
Typedefined in the KerML specification.Specification:
A
Typeis aNamespacethat is the most general kind ofElementsupporting the semantics of classification. ATypemay be aClassifieror aFeature, defining conditions on what is classified by theType(see also the description ofis_sufficient).For language description, see section 7.3.2 of the KerML specification. For more details on the model, see section 8.3.3.1.10 of the KerML specification.
Children
Members defined in
Type(38 members)
R
RThe owned multiplicity that is declared before the children block in the textual syntax.
RSyside specific accessor for manipulating
declared_multiplicity.
RSysMLImplementation of
differencing_typedefined in the KerML specification.
RSysMLImplementation of
directed_featuredefined in the KerML specification.
RThe types that related to this
Typethroughowned_disjoinings.
RSysMLImplementation of
end_featuredefined in the KerML specification.
RSysMLImplementation of
feature_membershipdefined in the KerML specification.
RSysMLImplementation of
featuredefined in the KerML specification.
RThe specializations and conjugations owned by this
Type.
RSysMLImplementation of
inherited_featuredefined in the KerML specification.
RSysMLImplementation of
inherited_membershipdefined in the KerML specification.
RSysMLImplementation of
inputdefined in the KerML specification.
RSysMLImplementation of
intersecting_typedefined in the KerML specification.
RWSysMLImplementation of
is_abstractdefined in the KerML specification.
RReturns
Trueif thisTypewas declared asabstractin the textual syntax.
RSysMLImplementation of
is_conjugateddefined in the KerML specification.
RWSysMLImplementation of
is_sufficientdefined in the KerML specification.
RReturns
Trueif thisTypewas declared assufficientin the textual syntax.
RSysMLImplementation of
multiplicitydefined in the KerML specification.
RSysMLImplementation of
outputdefined in the KerML specification.
RSysMLImplementation of
owned_conjugatordefined in the KerML specification.
RSysMLImplementation of
owned_differencingdefined in the KerML specification.
RThe
directed_featuresthat are owned by thisType.
RSysMLImplementation of
owned_disjoiningdefined in the KerML specification.
RSysMLImplementation of
owned_end_featuredefined in the KerML specification.
RSysMLImplementation of
owned_feature_membershipdefined in the KerML specification.
RSysMLImplementation of
owned_featuredefined in the KerML specification.
RThe
inputsthat are owned by thisType.
RSysMLImplementation of
owned_intersectingdefined in the KerML specification.
RThe
outputsthat are owned by thisType.
RSysMLImplementation of
owned_specializationdefined in the KerML specification.
RSysMLImplementation of
owned_unioningdefined in the KerML specification.
RThe other type, feature relationships and
FeatureChainingsowned by thisType.
RSysMLImplementation of
unioning_typedefined in the KerML specification.
Returns
Trueif thisTypedirectly or indirectly specializes anotherTypewhile followingFeatureChainings.
Returns the direction of a
Featurein thisType.
Returns
Trueif thisTypedirectly or indirectly specializes anotherTypewhile ignoringFeatureChainings.Members inherited from
Namespace(11 members)
RThe elements enclosed by curly brackets in textual syntax.
RSysMLImplementation of
imported_membershipdefined in the KerML specification.
RSysMLImplementation of
memberdefined in the KerML specification.
RSysMLImplementation of
membershipdefined in the KerML specification.
RSysMLImplementation of
owned_importdefined in the KerML specification.
RSysMLImplementation of
owned_memberdefined in the KerML specification.
RSysMLImplementation of
owned_membershipdefined in the KerML specification.
RMetadata prefixes, prefixed with
#in textual syntax.
Access owned named members by name. Throws
KeyErrorif a member with such name does not exist.
Non-throwing variant of
__getitem__. Returns None if a named member was not found.
Access owned memberships by name. Returns None if an owned member or membership with such name does not exist.
Members inherited from
Element(25 members)
RSysMLImplementation of
alias_idsdefined in the KerML specification.
RThe owned
Commentsrelated byowned_relationships.
RWSysMLImplementation of
declared_namedefined in the KerML specification.
RWSysMLImplementation of
declared_short_namedefined in the KerML specification.
RSysMLImplementation of
documentationdefined in the KerML specification.
RWSysMLImplementation of
element_iddefined in the KerML specification.
RSysMLImplementation of
is_implied_includeddefined in the KerML specification.
RSysMLImplementation of
is_library_elementdefined in the KerML specification.
RThe owned metadata related by
owned_relationships.
RSysMLImplementation of
namedefined in the KerML specification.
RSysMLImplementation of
owned_annotationdefined in the KerML specification.
RSysMLImplementation of
owned_elementdefined in the KerML specification.
RSysMLImplementation of
owned_relationshipdefined in the KerML specification.
RSysMLImplementation of
ownerdefined in the KerML specification.
RSysMLImplementation of
owning_membershipdefined in the KerML specification.
RSysMLImplementation of
owning_namespacedefined in the KerML specification.
RSysMLImplementation of
owning_relationshipdefined in the KerML specification.
RReturn a unique description of the location of this
Elementin the containment structure rooted in a rootNamespace. In most cases the segments will be identical toQualifiedName.
RSysMLImplementation of
qualified_namedefined in the KerML specification.
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.
RSysMLImplementation of
short_namedefined in the KerML specification.
RSysMLImplementation of
textual_representationdefined in the KerML specification.
Check if the qualified name of this
Elementmatches the provided segments of a qualified name.Members inherited from
AstNode(7 members) Attributes
- STD: tuple[type[syside.Type], ...] = ()
- property declared_multiplicity: syside.MultiplicityRange | None
The owned multiplicity that is declared before the children block in the textual syntax.
- property declared_multiplicity_member: syside.OwnedMultiplicityAccessor
Syside specific accessor for manipulating
declared_multiplicity.
- property differencing_types: syside.LazyIterator[syside.Type]
Implementation of
differencing_typedefined in the KerML specification.Specification:
The 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).See section 8.3.3.1.10 of the KerML specification for more details.
- property directed_features: syside.LazyIterator[syside.Feature]
Implementation of
directed_featuredefined in the KerML specification.Specification:
The
featuresof thisTypethat have a non-nulldirection.See section 8.3.3.1.10 of the KerML specification for more details.
- property disjoining_types: syside.LazyIterator[syside.Type]
The types that related to this
Typethroughowned_disjoinings.
- property end_features: syside.LazyIterator[syside.Feature]
Implementation of
end_featuredefined in the KerML specification.Specification:
All
featuresof thisTypewithis_end = true.See section 8.3.3.1.10 of the KerML specification for more details.
- property feature_memberships: syside.LazyIterator[syside.FeatureMembership]
Implementation of
feature_membershipdefined in the KerML specification.Specification:
The
FeatureMembershipsforfeaturesof thisType, which include allowned_feature_membershipsand thoseinherited_membershipsthat areFeatureMemberships(but does not include anyimported_memberships).See section 8.3.3.1.10 of the KerML specification for more details.
- property features: syside.LazyIterator[syside.Feature]
Implementation of
featuredefined in the KerML specification.Specification:
The
owned_member_featuresof thefeature_membershipsof thisType.See section 8.3.3.1.10 of the KerML specification for more details.
- property heritage: syside.Heritage
The specializations and conjugations owned by this
Type.
- property inherited_features: syside.LazyIterator[syside.Feature]
Implementation of
inherited_featuredefined in the KerML specification.Specification:
All the
member_featuresof theinherited_membershipsof thisTypethat areFeatureMemberships.See section 8.3.3.1.10 of the KerML specification for more details.
- property inherited_memberships: syside.LazyIterator[syside.Membership]
Implementation of
inherited_membershipdefined in the KerML specification.Specification:
All
Membershipsinherited by thisTypeviaSpecializationorConjugation. These are included in the derived union for themembershipsof theType.See section 8.3.3.1.10 of the KerML specification for more details.
- property inputs: syside.LazyIterator[syside.Feature]
Implementation of
inputdefined in the KerML specification.Specification:
All
featuresrelated to thisTypebyFeatureMembershipsthat havedirectioninorinout.See section 8.3.3.1.10 of the KerML specification for more details.
- property intersecting_types: syside.LazyIterator[syside.Type]
Implementation of
intersecting_typedefined in the KerML specification.Specification:
The 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).See section 8.3.3.1.10 of the KerML specification for more details.
- property is_abstract: bool
Implementation of
is_abstractdefined in the KerML specification.Specification:
Indicates whether instances of this
Typemust also be instances of at least one of its specializedTypes.See section 8.3.3.1.10 of the KerML specification for more details.
- property is_abstract_explicitly: bool
Returns
Trueif thisTypewas declared asabstractin the textual syntax.
- property is_conjugated: bool
Implementation of
is_conjugateddefined in the KerML specification.Specification:
Indicates whether this
Typehas anowned_conjugator.See section 8.3.3.1.10 of the KerML specification for more details.
- property is_sufficient: bool
Implementation of
is_sufficientdefined in the KerML specification.Specification:
Whether all things that meet the classification conditions of this
Typemust be classified by theType.(A
Typegives conditions that must be met by whatever it classifies, but whenis_sufficientis false, things may meet those conditions but still not be classified by theType. For example, a TypeCarthat is not sufficient could require everything it classifies to have four wheels, but not all four wheeled things would classify as cars. However, if theTypeCarwere sufficient, it would classify all four-wheeled things.)See section 8.3.3.1.10 of the KerML specification for more details.
- property is_sufficient_explicitly: bool
Returns
Trueif thisTypewas declared assufficientin the textual syntax.
- property multiplicity: syside.Multiplicity | None
Implementation of
multiplicitydefined in the KerML specification.Specification:
An
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.See section 8.3.3.1.10 of the KerML specification for more details.
- property outputs: syside.LazyIterator[syside.Feature]
Implementation of
outputdefined in the KerML specification.Specification:
All
featuresrelated to thisTypebyFeatureMembershipsthat havedirectionoutorinout.See section 8.3.3.1.10 of the KerML specification for more details.
- property owned_conjugator: syside.Conjugation | None
Implementation of
owned_conjugatordefined in the KerML specification.Specification:
A
Conjugationowned by thisTypefor which theTypeis theoriginal_type.See section 8.3.3.1.10 of the KerML specification for more details.
- property owned_differencings: syside.LazyIterator[syside.Differencing]
Implementation of
owned_differencingdefined in the KerML specification.Specification:
The
owned_relationshipsof thisTypethat areDifferencings, having thisTypeas theirtype_differenced.See section 8.3.3.1.10 of the KerML specification for more details.
- property owned_directed_features: syside.LazyIterator[syside.Feature]
The
directed_featuresthat are owned by thisType.
- property owned_disjoinings: syside.LazyIterator[syside.Disjoining]
Implementation of
owned_disjoiningdefined in the KerML specification.Specification:
The
owned_relationshipsof thisTypethat areDisjoinings, for which theTypeis thetype_disjoinedType.See section 8.3.3.1.10 of the KerML specification for more details.
- property owned_end_features: syside.LazyIterator[syside.Feature]
Implementation of
owned_end_featuredefined in the KerML specification.Specification:
All
end_featuresof thisTypethat areowned_features.See section 8.3.3.1.10 of the KerML specification for more details.
- property owned_feature_memberships: syside.LazyIterator[syside.FeatureMembership]
Implementation of
owned_feature_membershipdefined in the KerML specification.Specification:
The
owned_membershipsof thisTypethat areFeatureMemberships, for which theTypeis theowning_type. Each suchFeatureMembershipidentifies anowned_featureof theType.See section 8.3.3.1.10 of the KerML specification for more details.
- property owned_features: syside.LazyIterator[syside.Feature]
Implementation of
owned_featuredefined in the KerML specification.Specification:
The
owned_member_featuresof theowned_feature_membershipsof thisType.See section 8.3.3.1.10 of the KerML specification for more details.
- property owned_inputs: syside.LazyIterator[syside.Feature]
The
inputsthat are owned by thisType.
- property owned_intersectings: syside.LazyIterator[syside.Intersecting]
Implementation of
owned_intersectingdefined in the KerML specification.Specification:
The
owned_relationshipsof thisTypethat areIntersectings, have theTypeas theirtype_intersected.See section 8.3.3.1.10 of the KerML specification for more details.
- property owned_outputs: syside.LazyIterator[syside.Feature]
The
outputsthat are owned by thisType.
- property owned_specializations: syside.LazyIterator[syside.Specialization]
Implementation of
owned_specializationdefined in the KerML specification.Specification:
The
owned_relationshipsof thisTypethat areSpecializations, for which theTypeis thespecificType.See section 8.3.3.1.10 of the KerML specification for more details.
- property owned_unionings: syside.LazyIterator[syside.Unioning]
Implementation of
owned_unioningdefined in the KerML specification.Specification:
The
owned_relationshipsof thisTypethat areUnionings, having theTypeas theirtype_unioned.See section 8.3.3.1.10 of the KerML specification for more details.
- property type_relationships: syside.TypeRelationships
The other type, feature relationships and
FeatureChainingsowned by thisType.
- property unioning_types: syside.LazyIterator[syside.Type]
Implementation of
unioning_typedefined in the KerML specification.Specification:
The 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.See section 8.3.3.1.10 of the KerML specification for more details.
Methods
- conforms(arg: Sequence[str], /) bool
Returns
Trueif thisTypedirectly or indirectly specializes anotherTypewhile followingFeatureChainings.
- conforms(arg: syside.Type, /) bool
- direction_of(arg: syside.Feature, /) syside.FeatureDirectionKind | None
Returns the direction of a
Featurein thisType.
- specializes(arg: Sequence[str], /) bool
Returns
Trueif thisTypedirectly or indirectly specializes anotherTypewhile ignoringFeatureChainings.
- specializes(arg: syside.Type, /) bool
-