[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [henshin-dev] Technical details for Henshin model migration
|
Hi Simon,
please read on...
On 11/03/11 13:51, sih wrote:
hi Christian and all,
i am trying to use the henshin SDK and build-in graphical editor
recently. (since the multiple-view editor from tu-berlin do not
conform to the new version 0.8.0)
i have the following questions:
1. i installed it from update manager, i only see the henshin sdk, and
didn't see agg package. but i think henshin needs agg as the
transformation engine, also when i try the bankaccount example,
the transformation is not accomplished, so do i need to install agg?
Henshin has its own transformation engine and does not require AGG for
the execution. If you install the SDK from the website, you have
everything for editing and executing transformations.
2. i don't know how to use the actions. in the build-in editor, since
the models are edited in one editor, not distinguished as right-hand
side or left-hand side.
i see we need to give a stereotype to the element, like the
delete, forbid, to show the actions operated on the rule element,
how to add the stereotype?
Indeed, the built-in graphical editor does not distinguish between LHS
and RHS -- the rules are presented in an "integrated" view, similarly to
the syntax in the GROOVE tool. When you create a node or an edge, you
will see two labels: one for the name and type, and one for the
stereotype. The default stereotype (we also call it "action") is
"<<preserve>>". To change it, select this label and start typing, e.g.
"create" (you don't need the brackets). If you save the model then and
look at the *.henshin file, you will see that depending on the action,
nodes/edges are automatically created in the LHS/RHS including the
required mappings. If you prefer to edit the LHS/RHS of your rules
directly, you can use the tree-based editor (for *.henshin files), which
comes with a number of handy editing operations.
Cheers,
Christian
yours sincerely,
simon han
_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev