Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] assignment does not work
[ATL] assignment does not work [message #100862] Fri, 27 February 2009 12:01 Go to next message
Eclipse UserFriend
Hi,
I'm trying a transformation from AADL Behavior Annex to AADL Behavior
Annex, the source and dst metamodel are the same.

My problem is, when I want to assign to an attribute in the dst model,
using the value of the same attribute from the source model, it does not
work. No error occurs, but the value is null, (the value in the source
model is not null), it seems that the assignment does not work.

rule test{
from x:behavior!BehaviorGuard
to y:behavior!BehaviorGuard(
...
on <- x.on,
when <- x.when,
...
)
do {y;}
}

The problem only occurs for these two attributes: "on" and "when".
The attribute "on" and "when" are type "behavior!BehaviorExpression",
which is inherited by type 'behavior!Timeout',
'behavior!BinaryExpression', 'behavior!BehaviorArrary' ...
That is to say, the actual "on"/"when" is in type 'behavior!Timeout',
'behavior!BinaryExpression', 'behavior!BehaviorArrary' ...

It is strange the assignment does not work well.
Does anybody have the similar problem?
Could you tell me how to resolve it?
Thanks.

Yue
Re: [ATL] assignment does not work [message #100880 is a reply to message #100862] Sat, 28 February 2009 06:40 Go to previous message
Eclipse UserFriend
Hi Yue,

Do you have any rule to transform Timeout, BinaryExpression or
BehaviorArrary?
If the answer is yes, you should verify if any of these is triggered
when you execute the transformation.

Best regards,

Kelly.

Hi yue a écrit :
> Hi,
> I'm trying a transformation from AADL Behavior Annex to AADL Behavior
> Annex, the source and dst metamodel are the same.
>
> My problem is, when I want to assign to an attribute in the dst model,
> using the value of the same attribute from the source model, it does not
> work. No error occurs, but the value is null, (the value in the source
> model is not null), it seems that the assignment does not work.
>
> rule test{
> from x:behavior!BehaviorGuard
> to y:behavior!BehaviorGuard(
> ...
> on <- x.on,
> when <- x.when,
> ...
> )
> do {y;}
> }
>
> The problem only occurs for these two attributes: "on" and "when".
> The attribute "on" and "when" are type "behavior!BehaviorExpression",
> which is inherited by type 'behavior!Timeout',
> 'behavior!BinaryExpression', 'behavior!BehaviorArrary' ...
> That is to say, the actual "on"/"when" is in type 'behavior!Timeout',
> 'behavior!BinaryExpression', 'behavior!BehaviorArrary' ...
>
> It is strange the assignment does not work well.
> Does anybody have the similar problem?
> Could you tell me how to resolve it?
> Thanks.
>
> Yue
Previous Topic:[QVTO] UML Primitive Types
Next Topic:M2M - try to summarize
Goto Forum:
  


Current Time: Sat Jun 07 17:44:48 EDT 2025

Powered by FUDForum. Page generated in 0.02937 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top