Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » how to call a java method in an atl code
how to call a java method in an atl code [message #1032116] Tue, 02 April 2013 11:35 Go to next message
samar sousou is currently offline samar sousou
Messages: 63
Registered: March 2013
Member
Hi,
I have a problem with the Data type and the implementation of the loop so I need to know how to call a java method in an atl code.

Thank you very much !
Re: how to call a java method in an atl code [message #1033708 is a reply to message #1032116] Thu, 04 April 2013 10:46 Go to previous messageGo to next message
samar sousou is currently offline samar sousou
Messages: 63
Registered: March 2013
Member
Hi,
i'm in search on how to put the result of a simple rule in an other rule!!
for exemple

rule a{
from i:qq!t
to
o:ff!h(
name<- i.name
)
}


rule b{
from i:qq!y
to
o:ff!h(

type<- i.type
)

}

So i want that the rule b have also the attribute name inherited from rule a.
help me and thank you very much.
Re: how to call a java method in an atl code [message #1033791 is a reply to message #1033708] Thu, 04 April 2013 12:48 Go to previous message
Mohamed Mussa is currently offline Mohamed Mussa
Messages: 43
Registered: August 2010
Location: Canada
Member
Hi,

I think you need to use rule inheritance as described in the user guide

http://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Language#Rule_inheritance

for the java thing, I am looking too. According to the QVT specification, there is a black-box section where you can call external executable code.

Yours,

Mohamed

Previous Topic:How I can get the hierarchy of the events on a UML lifeline?
Next Topic:How to call a rule from an other rule
Goto Forum:
  


Current Time: Tue Jul 22 07:33:24 EDT 2014

Powered by FUDForum. Page generated in 0.04688 seconds