Skip to main content


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 15:35 Go to next message
samar sousou is currently offline samar sousouFriend
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 14:46 Go to previous messageGo to next message
samar sousou is currently offline samar sousouFriend
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 16:48 Go to previous message
Mohamed Mussa is currently offline Mohamed MussaFriend
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: Thu Mar 28 11:36:01 GMT 2024

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

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

Back to the top