Skip to content

#639 Modeling top level interface - #714

Merged
AndreaPuffo merged 14 commits into
mainfrom
639-vertical-scaling-modeling-top-level-interface
Sep 29, 2026
Merged

AndreaPuffo merged 14 commits into
mainfrom
639-vertical-scaling-modeling-top-level-interface

Conversation

@AndreaPuffo

Copy link
Copy Markdown
Collaborator

Addresses #639, just the modeling part. Best review commit-by-commit.

@AndreaPuffo AndreaPuffo linked an issue Sep 3, 2026 that may be closed by this pull request
Comment thread plugins/com.github.tno.synthml.uml.profile.design/description/synthml.odesign Outdated
}
}

private void checkValidInterfaceActivity(Activity activity) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  • Should we disallow templated/parameterized interface activities, or not?
  • Should we disallow interval constraints in interface activities, or not?
  • Should we disallow pre/post conditions in interface activities, or not?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I would say no parameterized interface activities and no interval constraints in them; I would allow pre/post-conditions. What do you think?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I was thinking the same regarding no parameters and no interval constraints. I was also thinking to allow precondition. I'm not sure about a post-condition. Would an interface not go on forever, generally?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think the main use we want to have is indeed to have an infinite loop, but it doesn't have to be the case; we can allow a "simple" interface. Maybe we can add an assertion that checks if there is a final node then we can have a postcondition, otherwise not?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I assume you don't mean a code assertion that makes validation crash, but rather a mean model validation constraint? I like it. It does allow having postconditions, but only when it makes sense to have them.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Re: parameterized activities.
I cannot find a method similar to isParameterizedActivity. There are methods in the CIF context asking if it contains any parameterized activity. Should we add a dedicated method? Probably new issue as well.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sure, new issue is fine.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Created #716.

@AndreaPuffo

Copy link
Copy Markdown
Collaborator Author

Sorry, I realized now that one commit was supposed to be fixed-up. I had some issues with the interactive rebase, I thought it went through -- but clearly it didn't.

@dhendriks

Copy link
Copy Markdown
Collaborator

Last commit has wrong issue number prefix.

@AndreaPuffo
AndreaPuffo merged commit fc8ae52 into main Sep 29, 2026
@AndreaPuffo
AndreaPuffo deleted the 639-vertical-scaling-modeling-top-level-interface branch September 29, 2026 19:23
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.

Activity synthesis vertical scaling: top-level interface

2 participants