ST6RI-812 Additional issue resolutions from SysML v2 FTF2 Ballot #6 (SYSML2_-89, SYSML2_-265)#612
Conversation
- Also implemented check for validateTransitionUsageTriggerActions.
checkTransitionStateUsageSpecialization.
|
@TheKorpos |
|
Maybe I do not understand the scope of this PR, but I could not check the constraints of For example: has no error. (Actually, I did not check I could check |
|
We should probably add |
These constraints only apply when a port or state usage is owned by a part definition or usage. They imply that the port or state usage has a subsetting of This PR fixes, specifically, the implicit specialization implementation for the port |
|
@seidewitz, thank you. Now I think I can understand better. I found a state owned by a part does not have implicit subsettings of gets: |
For: - checkPortUsageOwnedPortSpecialization - checkStateUsageOwnedStateSpecialization
Yes, that is OK. |
Good point. I have added these. |
himi
left a comment
There was a problem hiding this comment.
I checked the constraints and confirmed they worked.


This PR implements resolutions to the following issues approved in SysML v2 FTF2 Ballot 6:
checkTransitionUsageActionSpecializationandcheckTransitionUsageStateSpecializationand adds the validation constraintvalidateTransitionUsageActions, such that a compositeTransitionUsagein a state model, with asourcethat is not aStateUsage, specializesdecisionTransitionsrather thanstateTransitions.checkPortUsageOwnedPortSpecializationandcheckStateUsageOwnedStateSpecialization.checkPortUsageOwnedPortSpecializationwas incorrect and not working. This has now been fixed.The implementation of SYSML2_-89 also highlighted an issue with the parsing of
TransitionUsages. Names for thesource(first) andtarget(then) elements of aTransitionUsagewere being resolved starting in the local scope of theTransitionUsage. In particular, this meant thatstartanddoneresolved to those snapshots of theTransitionUsageitself, not the containingStateDefinitionorStateUsage. This has now been changed so that the resolution of these names (including the initial name of a feature chain) begins in the scope of theowningNamespaceof theTransitionUsage.Textual Notation
Updated:
org.omg.sysml.xtext.scoping.SysMLScopeProviderTransitionUsagesourceandtarget.Abstract Syntax
Updated:
org.omg.sysml.xtext.validation.SysMLValidatorvalidateTransitionUsageActions.Semantics
Adapters updated:
PortUsageAdaptercheckPortUsageOwnedPortSpecializationTransitionUsageAdaptercheckTransitionUsageActionSpecializationandcheckTransitionUsageStateSpecialization.Model Libraries
Systems Library
Updated:
States.sysmlStateAction, added redefinitions ofstartanddone, typing them byStateAction. This ensures, in particular, that a compositeTransitionUsagein a state model withStateAction::startas itssourcewill be aStateTransitionAction.