Skip to content

Conversation

@seidewitz
Copy link
Member

@seidewitz seidewitz commented Jun 30, 2025

This PR adds annotations to the code to identify the implementation of transformations that satisfy various semantic constraints from the KerML and SysML specifications. These annotations have the following form:

  • @satisfiesconstraintName – The annotated code implements a transformation to satisfy the named semantic constraint.

In addition, comments have been included in the constructor for ImplicitGeneralizationMap to indicate which specialization constraints are satisfied by the various implicit specializations in the map.

The PR also adds annotations to identify were the current implementation differs from the specifications and semantic constraints that are not yet implemented. These annotations have one of the following forms:

  • TODO: UpdateconstraintName – The specification of the named constraints should be updated to be consistent with the implementation. A reference is also provided to a KerML 1.1 or SysML 2.1 Revision Task Force issue addressing this.
  • TODO:constraintName – There is currently no implementation for the named constraint.

TheKorpos and others added 17 commits November 18, 2024 17:07
 - Semantic constraints marked from SysmlV2 abstract syntax from 8.3.6.2
to 8.3.16.13
@Satisfies for:
- checkMultiplicityRangeExpressionTypeFeaturing
- checkUsageVariationUsageTypeFeaturing
- checkMetadataFeatureSemanticSpecialization
- checkFeatureChainExpressionResultSpecialization
- checkFeatureResultRedefinition
- checkFeatureEndRedefinition

TODOs for:
- checkDescisionNodeOutgoingSuccessionSpecialization
- checkMergeNodeIncomingSuccessionSpecialization
Copy link
Contributor

@TheKorpos TheKorpos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seidewitz
Thank you for annotating the remaining semantic constraints. I compared them to the OCLs and commented on two of them that might be off.

ST6RI-857/858/860/861 Semantic transformation bugs
@seidewitz seidewitz merged commit 5454315 into master Jul 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants