[ATL] assignment does not work [message #100862] |
Fri, 27 February 2009 12:01  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02937 seconds