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

Export amalgamation-completing morphisms #47

Open
szschaler opened this issue May 15, 2020 · 1 comment · May be fixed by #53
Open

Export amalgamation-completing morphisms #47

szschaler opened this issue May 15, 2020 · 1 comment · May be fixed by #53
Assignees
Labels
enhancement New feature or request

Comments

@szschaler
Copy link
Member

weave should export the completion morphisms when exporting the GTS so that models can be transformed from the original meta-models to the amalgamated meta-model. Could, potentially, even generate the required Henshin transformation directly?

@szschaler szschaler added the enhancement New feature or request label May 15, 2020
@szschaler
Copy link
Member Author

What I would really like is some sort of API where I can pass in a model with some information about the GTS it instantiates (either implicitly through the meta-model referenced in the model or, more likely, explicitly by referencing the name of a GTS) and the GTS it should instantiate (by reference to a GTS name) and GTSMorpher figures out the resulting model for me.

Perhaps even through a new construct in the language so that one could say something like:

gts start {
  metamodel: A
  behaviour: ARules
}

map AB ...

gts final {
  weave: {
    map1: interface_of(start)
    map2: AB
  }
}

model derivedModel = "filename" (which is instance of start) as final

where the (which is instance of start) would be optional. The model construct might also support an export modifier, which would require that final was also exported and would export the resulting model as a file. Without export, the model would be available internally and through an API perhaps. This would allow the Henshin engine to run models for languages derived using GTSMorpher.

@szschaler szschaler self-assigned this Mar 31, 2021
@szschaler szschaler linked a pull request Apr 1, 2021 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant