[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [henshin-dev] Parameterize node types?
|
Hi everyone,
I'd rather support better metaprogramming facilities in henshin. What
you want to do is to create a lot of Rules matching different node
types. I don't quite see where a dynamic type system can be of real
help there. Using metaprogramming techniques, one could just let
henshin create all required Rules. Henshin already offers, as I
understand, a somewhat working implementation of higher-order
transformations.
Felix
Quoting Christian Krause <henshin.ck@xxxxxxxxx>:
Hi Jens,
interesting question. Henshin is currently statically typed. I am
not sure whether we should allow dynamically typed nodes. The thing
is that then also the edges need to be dynamically typed and at
runtime we have to make sure that the types are compatible.
I do not really want to add this feature solely to better support
UML stereotypes. Can anybody think of other applications where this
might be useful?
Cheers,
Christian
Am 11/2/2012 6:31 PM, schrieb Jens Bürger:
Hello everyone,
I'm currently thinking of a problem:
I want to use a Henshin rule to detect if some kind of pattern
exists in a model.
I attached a screenshot of a rule as illustration.
The stereotype :LAN could also be :Internet, :encrypted... and so on.
The first solution would be creating one rule for every possible
stereotype-type, but is there a more convenient way?
Jens