Skip to content

Update isAbstract mapping - #10

Open
RaphaelPageObeo wants to merge 2 commits into
eclipse-capella:masterfrom
RaphaelPageObeo:patch-1
Open

RaphaelPageObeo wants to merge 2 commits into
eclipse-capella:masterfrom
RaphaelPageObeo:patch-1

Conversation

@RaphaelPageObeo

Copy link
Copy Markdown

During the implementation of the sysmlv2 bridge, I noticed that the mapping of isAbstract could use some clarifications.
Do you think this is ok ?

Comment thread doc/ArcadiaLibraryMapping.md Outdated
| None | None | (Attribute) physicalComponentNature | Differentiate a Physical Node from a Physical Behavior (applies only to Physical Components) | See below | N/A | N/A |
| None | None | (Enum) physicalComponentKind | Indicates the type of Component the component (applies only to Physical Components) | In Capella, this is a hardcoded list. Projects tend to create their own with Property values. To be migrated to specific attributes depending on project usages, not reconducted in the library | N/A | N/A |
| None | None | isAbstract | Used for Actors. Kind of a "REC/RPL' thing to create abstract actors and reuse among actors - linked to Generalized Components | Rarely used. See how REC/RPL are managed in v2 | N/A | N/A |
| None | Type::isAbstract (parameter) | isAbstract | Used for Actors. Kind of a "REC/RPL' thing to create abstract actors and reuse among actors - linked to Generalized Components | Rarely used. See how REC/RPL are managed in v2 | N/A | N/A |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, I think this mapping is correct.

Capella isAbstract can be mapped to the native SysML v2/KerML Type::isAbstract, represented textually by the abstract modifier. This is preferable to introducing an Arcadia-specific property, since the concept already exists natively in the language.

I would only suggest making the mapping slightly more explicit, for example:

Type::isAbstract / abstract modifier

rather than just Type::isAbstract (parameter), so that it is clear how this is represented in SysML v2 textual syntax.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done ! I wasn't sure how to write this :)

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