Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » ATL transformation
ATL transformation [message #890223] Thu, 21 June 2012 14:02 Go to next message
zz lalou is currently offline zz lalouFriend
Messages: 17
Registered: April 2011
Junior Member
I want to transform an uml port to an uml property,
The problem that this property must has a type that is specified in an other model(different from the source and the target model)
how can I references this type?

lazy rule FlowPort2Property {
from p : UML!Port (p.hasStereotype('FlowPort'))
to v : UML!Property (name<
do {
thisModule.stereoFlow <- RCA!FlowPort.allInstances().first();
if (thisModule.stereoFlow.direction = 'in'){ <- 'PortIn' ;
v.visibility <- #public;
else if (thisModule.stereoFlow.direction = #out){ <- 'PortOut' ;
v.visibility <- #public;

thx for helping
Re: ATL transformation [message #898428 is a reply to message #890223] Thu, 26 July 2012 11:32 Go to previous message
Ronan B is currently offline Ronan BFriend
Messages: 273
Registered: July 2009
Senior Member
Everything type you wish to reference must be specified as an input model. Otherwise the model will not be valid as ATL will not be able to resolve the type. So try adding the model that contains your types as an input model.
Previous Topic:XMI IDs in external program
Next Topic:How to add option to ANT atl.saveModel?
Goto Forum:

Current Time: Thu Apr 19 19:44:32 GMT 2018

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

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