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 Missing name is currently offline zz Missing nameFriend
Messages: 10
Registered: April 2011
Junior Member
Hello,
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<-p.name)
do {
thisModule.stereoFlow <- RCA!FlowPort.allInstances().first();
if (thisModule.stereoFlow.direction = 'in'){
v.name <- 'PortIn' ;
v.visibility <- #public;
}
else if (thisModule.stereoFlow.direction = #out){
v.name <- '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: 249
Registered: July 2009
Senior Member
Hi,
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.
Regards,
Ronan
Previous Topic:XMI IDs in external program
Next Topic:How to add option to ANT atl.saveModel?
Goto Forum:
  


Current Time: Mon Dec 22 05:52:14 GMT 2014

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

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