[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [henshin-dev] transformation rule
|
Amalia,
please keep former discussions embedded in favor of traceability. I
appended the latest posts manually this time.
Assuming that your statechart.ecore model contains an element
:EClass(name="State"):
In your Henshin rule, create a preserved(!) :EClass object with an
additional attribute name="State". In the RHS, use this object to be
referred to as type. Before applying the rule, add the root element
of your statechart.ecore model to the EmfGraph instance to allow
Henshin to match the correct EClass object.
You should find something similar in our examples plugin in the
ecore2genmodel package and in the metamodelevolution package.
E.g., in terms of the former, have a look at rule
createCustomizedRule in which some Genmodel types are matched in the
LHS and are used as types in the RHS.
Hope this help,
Stefan
Am 07.07.2011 12:09, schrieb Amalia Sanusi:
Hi Stefan,
Yes, that’s correct.
---
Kind regards,
Amalia Sanusi
Am 06.07.2011 21:08, schrieb Stefan Jurack:
Sorry, could you explain this in a different way. I am afraid I
did not get the point yet.
I understood the following: You are modeling a rule which
creates a new transformation system, i.e. in the RHS you have a
TransformationSystem object with Rules etc. And you want to use
elements of a statechart diagram ecore file as associated types
of the nodes and edges in that newly created transformation
system. Is that right so far?
greetx, Stefan
Am 06.07.2011 20:09, schrieb Amalia Sanusi:
Hello,
I’m working on henshin transformation
rule, whereby I want to make a new Graph with all the
Nodes and Edges (and the result will be another henshin
file with the graph added). But I’m facing difficulties in
linking the Nodes and Edges to their respective Eclass
& Ereference. This Eclass should be an EClass from a
statechart diagram ecore file. How do I combine the two?
---
Kind regards,
Amalia Sanusi
_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev
|
Attachment:
signature.asc
Description: OpenPGP digital signature