Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ST6RI-727 Implicit redefinitions should be added even if there are owned redefinitions #525

Merged
merged 7 commits into from
Jan 8, 2024

Conversation

seidewitz
Copy link
Member

@seidewitz seidewitz commented Jan 6, 2024

  1. Corrects FeatureAdapter::isComputeRedefinitions so that implicit redefinitions are added even if a Feature already has ownedRedefinitions, consistent with the rules for implied redefinitions per the specifications.
  2. Removes the special handling of the redefinition of subject parameters, in which a subject will redefine the subject of a supertype, regardless of its position in the list of parameters. Instead, subject parameter redefinition is handled by the normal rule for implied redefinitions of parameters in order, per the specification. (Note that, in a valid model, a subject parameter must always be the first parameter, so, in this case, an owned subject parameter will still always redefine any subject parameters of superypes.)
  3. Corrects the TradeStudies::TradeStudy model per the resolution to the issue below (because otherwise the above changes result in validation errors being flagged for the model).

@seidewitz
Copy link
Member Author

@himi
I don't think this one will affect visualization. However, let me know if you would like to review it.

@himi
Copy link
Member

himi commented Jan 8, 2024

I think so. The visualizer currently uses owned redefinitions only. I can check it for sure with some tricky examples. But if you'd like to complete it quickly, please do so without my review.

@seidewitz
Copy link
Member Author

@himi
There will also be another PR soon resolving ST6RI-720 (Remove automatic insertion of explicit subject and objective features), which might actually have a bigger impact. Perhaps you could just review that change, which will be in addition to the changes from this PR.

@himi
Copy link
Member

himi commented Jan 8, 2024

@seidewitz, thank you for letting me know about it. I'll do so. This PR itself looks quite reasonable because SysML/KerML parameters are positional as you previously said.

@seidewitz seidewitz merged commit e3f6d52 into master Jan 8, 2024
2 checks passed
@seidewitz seidewitz self-assigned this Jan 8, 2024
@seidewitz seidewitz added this to the 2023-12 milestone Jan 8, 2024
@seidewitz
Copy link
Member Author

@himi
FYI, it turns out I will not be creating a PR for ST6RI-720 after all. Implementation for this issue (which has been pushed to the ST6RI-720 branch) has identified additional considerations on the semantics of redefinition that will likely need to be addressed by the FTF(s).

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.

2 participants