eclipse-gemoc / eclipse-gemoc/gemoc-studio-modeldebugging

Provide priority mechanism for sorting calls of addons

Open
#111 6 comments 0 reactions 1 assignee Claimed by @dvojtise View on GitHub
enhancement
Dominant language
Java
Stars
6
Forks
14
PR merge metrics
No merged PRs in 30d

Description

given an engine notification, some addons should be called before or after some other addons.

Currently, we have no way to sort them.

Some difficult point, we may not know about the other addons, (so we cannot just create a dependency between addon), the priority may be different on the various calls (ex: high priority on engine start, low priority on executeStep)

So I suggest a mechanism based on priorities that are set on each notification.
By default, the priority would be "0", and the higher it is, the earlier it should be run, the lower it is (negative) the later it should be run.

Then before launching a notification, it will sort the addons to be run according to these priorities directives.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.