Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Henshin Transformation Units

Dear Yannic,

you can take a look at this paper: http://journal.ub.tu-berlin.de/eceasst/article/view/528/530. There you can find the following:

A HENSHIN transformation unit may be of type IndependentUnit (all subunits are applied in arbitrary order), SequentialUnit (all subunits are applied sequentially in a given order), CountedUnit (its subunit is applied a given number of times), ConditionalUnit
(its subunits are applied depending on the evaluation of a given condition unit), and PriorityUnit (the applicable subunit with the highest priority is applied next). A unit is applicable (and returns true) if it can be successfully executed. PriorityUnits and IndependentUnits are always applicable, while SequentialUnits (CountedUnits) are applicable only if all subunits are applicable in the given order (the given number of times). A ConditionalUnit is applicable if either the thensubunit (in case the condition is true) or the else-subunit (in case the condition is false) are applicable.

If you want to know exactly how they work, you can take a look at the default implementation of UnitApplication: http://dev.eclipse.org/svnroot/modeling/org.eclipse.emft.henshin/trunk/plugins/org.eclipse.emf.henshin.interpreter/src/org/eclipse/emf/henshin/interpreter/impl/UnitApplicationImpl.java (check out the execute* methods)

Hope that helps.

Cheers,
Christian



2013/5/22 Yannic Noller <nolleryc@xxxxxxxxx>
Dear Henshin developers,

is there any documentation about the transformation units? Especially I would like to know how exactly the PriorityUnit works.

Best Regards,
Yannic Noller

_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev



Back to the top