[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.modeling.m2m] Re: How to distinguish several in- and out-models
|
Hi,
in the guard, you can use the method allInstancesFrom, like this:
rule MultipleInput {
from
c : UML2!Class (UML2!Class.allInstancesFrom('IN')->exists ( e | e = c) )
to
...
}
Concerning the output models, try to use different identifiers for the output metamodels,
as shown in the example below:
create OUT : UML_OUT1, TRACE_OUT : UML_OUT2 from ...
rule MultipleOutput {
...
to
model1: UML_OUT1 (
),
model2 : UML_OUT2 (
)
}
Regards,
Marcos.
Timo Kehrer wrote:
Hello,
I have the following situation:
An ATL transformation with several in- and out-models conorming to the same
metamodel (In my case: UML2)
Looks like this.
create OUT : UML2, TRACE_OUT : UML2 from IN : UML2, TRACE_IN : UML2;
now my problem:
how can I refer to those models in the rule specification?
The examples always consider exactly ONE input and output model.
But how can I tell the ATL-engine, in which model to create or match the
elements?
Thanks for any hints
Timo