Definition SysML
- class Definition
Implementation of
Definitiondefined in the SysML specification.Specification:
A
Definitionis aClassifierofUsages. The actual kinds ofDefinitionthat may appear in a model are given by the subclasses ofDefinition(possibly as extended with user-definedSemanticMetadata).Normally, a
Definitionhas owned Usages that modelfeaturesof the thing being defined. ADefinitionmay also have otherDefinitionsnested in it, but this has no semantic significance, other than the nested scoping resulting from theDefinitionbeing considered as aNamespacefor any nestedDefinitions.However, if a
Definitionhasis_variation=true, then it represents a variation pointDefinition. In this case, all of itsmembersmust bevariantUsages, related to theDefinitionbyVariantMembershipRelationships. Rather than beingfeaturesof theDefinition,variantUsagesmodel different concrete alternatives that can be chosen to fill in for an abstractUsageof the variation pointDefinition.For language description, see section 7.6 of the SysML specification. For more details on the model, see section 8.3.6.2 of the SysML specification.
Children
Members defined in
Definition(34 members)
R
RSysMLImplementation of
directed_usagedefined in the SysML specification.
RWSysMLImplementation of
is_variationdefined in the SysML specification.
RSysMLImplementation of
owned_actiondefined in the SysML specification.
RSysMLImplementation of
owned_allocationdefined in the SysML specification.
RSysMLImplementation of
owned_analysis_casedefined in the SysML specification.
RSysMLImplementation of
owned_attributedefined in the SysML specification.
RSysMLImplementation of
owned_calculationdefined in the SysML specification.
RSysMLImplementation of
owned_casedefined in the SysML specification.
RSysMLImplementation of
owned_concerndefined in the SysML specification.
RSysMLImplementation of
owned_connectiondefined in the SysML specification.
RSysMLImplementation of
owned_constraintdefined in the SysML specification.
RSysMLImplementation of
owned_enumerationdefined in the SysML specification.
RSysMLImplementation of
owned_flowdefined in the SysML specification.
RSysMLImplementation of
owned_interfacedefined in the SysML specification.
RSysMLImplementation of
owned_itemdefined in the SysML specification.
RSysMLImplementation of
owned_metadatadefined in the SysML specification.
RSysMLImplementation of
owned_occurrencedefined in the SysML specification.
RSysMLImplementation of
owned_partdefined in the SysML specification.
RSysMLImplementation of
owned_portdefined in the SysML specification.
RSysMLImplementation of
owned_referencedefined in the SysML specification.
RSysMLImplementation of
owned_renderingdefined in the SysML specification.
RSysMLImplementation of
owned_requirementdefined in the SysML specification.
RSysMLImplementation of
owned_statedefined in the SysML specification.
RSysMLImplementation of
owned_transitiondefined in the SysML specification.
RSysMLImplementation of
owned_usagedefined in the SysML specification.
RSysMLImplementation of
owned_use_casedefined in the SysML specification.
RSysMLImplementation of
owned_verification_casedefined in the SysML specification.
RSysMLImplementation of
owned_viewpointdefined in the SysML specification.
RSysMLImplementation of
owned_viewdefined in the SysML specification.
RSysMLImplementation of
usagedefined in the SysML specification.
RSysMLImplementation of
variant_membershipdefined in the SysML specification.
RSysMLImplementation of
variantdefined in the SysML specification.
Try setting
is_variation. For types that are implicitly variations, this will returnFalseinstead of throwingTypeErrorwhen usingis_variationsetter.Members inherited from
Classifier(2 members)
RThe
Classifiersrelated to thisClassifierbyowned_subclassifications.
RSysMLImplementation of
owned_subclassificationdefined in the KerML specification.Members inherited from
Type(37 members)
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.Definition], ...] = ()
- property directed_usages: syside.LazyIterator[syside.Usage]
Implementation of
directed_usagedefined in the SysML specification.Specification:
The
usagesof thisDefinitionthat aredirected_features.See section 8.3.6.2 of the SysML specification for more details.
- property is_variation: bool
Implementation of
is_variationdefined in the SysML specification.Specification:
Whether this
Definitionis for a variation point or not. If true, then all themembershipsof theDefinitionmust beVariantMemberships.See section 8.3.6.2 of the SysML specification for more details.
The setter will throw
TypeErroron types that are implicitly variations already, e.g.EnumerationDefinition. Usetry_set_is_variationinstead for a non-throwing behaviour.
- property owned_actions: syside.LazyIterator[syside.ActionUsage | syside.FlowUsage]
Implementation of
owned_actiondefined in the SysML specification.Specification:
The
ActionUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_allocations: syside.LazyIterator[syside.AllocationUsage]
Implementation of
owned_allocationdefined in the SysML specification.Specification:
The
AllocationUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_analysis_cases: syside.LazyIterator[syside.AnalysisCaseUsage]
Implementation of
owned_analysis_casedefined in the SysML specification.Specification:
The
AnalysisCaseUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_attributes: syside.LazyIterator[syside.AttributeUsage]
Implementation of
owned_attributedefined in the SysML specification.Specification:
The
AttributeUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_calculations: syside.LazyIterator[syside.CalculationUsage]
Implementation of
owned_calculationdefined in the SysML specification.Specification:
The
CalculationUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_cases: syside.LazyIterator[syside.CaseUsage]
Implementation of
owned_casedefined in the SysML specification.Specification:
The code>CaseUsages that are
owned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_concerns: syside.LazyIterator[syside.ConcernUsage]
Implementation of
owned_concerndefined in the SysML specification.Specification:
The
ConcernUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_connections: syside.LazyIterator[syside.ConnectorAsUsage]
Implementation of
owned_connectiondefined in the SysML specification.Specification:
The
ConnectorAsUsagesthat areowned_usagesof thisDefinition. Note that this list includesBindingConnectorAsUsages,SuccessionAsUsages, andFlowUsagesbecause these areConnectorAsUsageseven though they are notConnectionUsages.See section 8.3.6.2 of the SysML specification for more details.
- property owned_constraints: syside.LazyIterator[syside.ConstraintUsage]
Implementation of
owned_constraintdefined in the SysML specification.Specification:
The
ConstraintUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_enumerations: syside.LazyIterator[syside.EnumerationUsage]
Implementation of
owned_enumerationdefined in the SysML specification.Specification:
The
EnumerationUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_flows: syside.LazyIterator[syside.FlowUsage]
Implementation of
owned_flowdefined in the SysML specification.Specification:
The
FlowUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_interfaces: syside.LazyIterator[syside.InterfaceUsage]
Implementation of
owned_interfacedefined in the SysML specification.Specification:
The
InterfaceUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_items: syside.LazyIterator[syside.ItemUsage]
Implementation of
owned_itemdefined in the SysML specification.Specification:
The
ItemUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_metadata: syside.LazyIterator[syside.MetadataUsage]
Implementation of
owned_metadatadefined in the SysML specification.Specification:
The
MetadataUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_occurrences: syside.LazyIterator[syside.OccurrenceUsage]
Implementation of
owned_occurrencedefined in the SysML specification.Specification:
The
OccurrenceUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_parts: syside.LazyIterator[syside.PartUsage | syside.ConnectionUsage]
Implementation of
owned_partdefined in the SysML specification.Specification:
The
PartUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_ports: syside.LazyIterator[syside.PortUsage]
Implementation of
owned_portdefined in the SysML specification.Specification:
The
PortUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_references: syside.LazyIterator[syside.ReferenceUsage]
Implementation of
owned_referencedefined in the SysML specification.Specification:
The
ReferenceUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_renderings: syside.LazyIterator[syside.RenderingUsage]
Implementation of
owned_renderingdefined in the SysML specification.Specification:
The
RenderingUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_requirements: syside.LazyIterator[syside.RequirementUsage]
Implementation of
owned_requirementdefined in the SysML specification.Specification:
The
RequirementUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_states: syside.LazyIterator[syside.StateUsage]
Implementation of
owned_statedefined in the SysML specification.Specification:
The
StateUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_transitions: syside.LazyIterator[syside.TransitionUsage]
Implementation of
owned_transitiondefined in the SysML specification.Specification:
The
TransitionUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_usages: syside.LazyIterator[syside.Usage]
Implementation of
owned_usagedefined in the SysML specification.Specification:
The
Usagesthat areowned_featuresof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_use_cases: syside.LazyIterator[syside.UseCaseUsage]
Implementation of
owned_use_casedefined in the SysML specification.Specification:
The
UseCaseUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_verification_cases: syside.LazyIterator[syside.VerificationCaseUsage]
Implementation of
owned_verification_casedefined in the SysML specification.Specification:
The
VerificationCaseUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_viewpoints: syside.LazyIterator[syside.ViewpointUsage]
Implementation of
owned_viewpointdefined in the SysML specification.Specification:
The
ViewpointUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property owned_views: syside.LazyIterator[syside.ViewUsage]
Implementation of
owned_viewdefined in the SysML specification.Specification:
The
ViewUsagesthat areowned_usagesof thisDefinition.See section 8.3.6.2 of the SysML specification for more details.
- property usages: syside.LazyIterator[syside.Usage]
Implementation of
usagedefined in the SysML specification.Specification:
The
Usagesthat arefeaturesof thisDefinition(not necessarily owned).See section 8.3.6.2 of the SysML specification for more details.
- property variant_memberships: syside.LazyIterator[syside.VariantMembership]
Implementation of
variant_membershipdefined in the SysML specification.Specification:
The
owned_membershipsof thisDefinitionthat areVariantMemberships. Ifis_variation= true, then this must be allowned_membershipsof theDefinition. Ifis_variation= false, thenvariant_membershipmust be empty.See section 8.3.6.2 of the SysML specification for more details.
- property variants: syside.LazyIterator[syside.Usage]
Implementation of
variantdefined in the SysML specification.Specification:
The
Usageswhich represent the variants of thisDefinitionas a variation pointDefinition, ifis_variation= true. Ifis_variation = false, the there must be novariants.See section 8.3.6.2 of the SysML specification for more details.
Methods
- try_set_is_variation(arg: bool, /) bool
Try setting
is_variation. For types that are implicitly variations, this will returnFalseinstead of throwingTypeErrorwhen usingis_variationsetter.