Problem assigning in a target the source element of an emftvm rule [message #1109005] |
Sat, 14 September 2013 19:26 |
EtienneB Mising name Messages: 35 Registered: June 2011 |
Member |
|
|
Hi guys,
I have implemented a HOT in order to trace which rules can be executed on each element of a source model.
This HOT produces rules like this:
rule featureInstance {
from
fi : AADLI!FeatureInstance
to
t : MM_ATL2PM!ElementTransformationTuple (
key <- Sequence {fi},
value <- 'featureInstance'
)
}
The key field of ElementTransformationTuple is a list of NamedElement, which is a super class of FeatureInstance. When executing this rule, the emftvm runtime tries to put in the 'key' list an object of type ElementTransformationTuple. Of course this throws a class cast exception.
Is this a wrong usage of ATL, or a bug in the emftvm runtime?
Thanks a lot for your comments on this,
Etienne.
[Updated on: Sat, 14 September 2013 19:53] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03088 seconds