Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » types of an OCL expression in ETL
types of an OCL expression in ETL [message #1751684] Thu, 12 January 2017 13:39 Go to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
I know ATL does not offer any support nor API to statically obtain the types of an OCL expression. I want to know does ETL offer? (the model with the OCL navigations parsed)

[Updated on: Thu, 12 January 2017 13:40]

Report message to a moderator

Re: types of an OCL expression in ETL [message #1751686 is a reply to message #1751684] Thu, 12 January 2017 13:47 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1498
Registered: July 2009
Location: York, UK
Senior Member

Hi,

anATLyzer [1] may be providing such capabilities for ATL. For ETL, Haetae could be of use [2] but I'm afraid I don't have much hands-on experience with it. The fastest way to contact Haetae's developers would be to open an issue on GitHub.

Cheers,
Dimitris

[1] http://sanchezcuadrado.es/projects/anatlyzer/usage.html
[2] https://github.com/epsilonlabs/haetae
Re: types of an OCL expression in ETL [message #1751687 is a reply to message #1751686] Thu, 12 January 2017 14:04 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
Many thanks for your kind help
Re: types of an OCL expression in ETL [message #1751746 is a reply to message #1751684] Fri, 13 January 2017 12:17 Go to previous messageGo to next message
Ran Wei is currently offline Ran WeiFriend
Messages: 75
Registered: September 2012
Location: York, UK
Member
Hi there,

To obtain the types of expression of an ETL transformation, in Eclipse, Haetae provides an "overview" view to view the entire tree of the program. However, Haetae provides a "best guess" solution. Expressions with type "Any" will be recorded as "Any" on the overview, although internally different things happen.

You can also do this programmatically, but that requires further explanation. Please let me know if this is the direction you want to go.

Cheers,
Will


Research Associate
Department of Computer Science
University of York
Re: types of an OCL expression in ETL [message #1755720 is a reply to message #1751746] Tue, 07 March 2017 08:53 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
thank you.

I need the extraction of the navigation paths, traversing through iterators, ...
e.g. if we have "s.ownedProperty.class -> collect(e|e.attribute.type) -> collect(f|f.date)", where "s" is of type "Bank". I want to retrieve : "Bank.ownedProperty.class.attribute.type.date"

Does Haetae provide this facility or I should write the code myself?

[Updated on: Tue, 07 March 2017 09:05]

Report message to a moderator

Re: types of an OCL expression in ETL [message #1755820 is a reply to message #1755720] Wed, 08 March 2017 12:19 Go to previous message
Ran Wei is currently offline Ran WeiFriend
Messages: 75
Registered: September 2012
Location: York, UK
Member
Hi,

In theory, in EOL you can write something like s.ownedProperty.class.attribute.type.date, depending on the types of the properties you are accessing here (which I do not know).

Haetae does not provide facility for refactoring as it is non-invasive to EOL programs (at least for now).

Cheers,
Will


Research Associate
Department of Computer Science
University of York
Previous Topic:[EVL] [EPL] Intermediate models
Next Topic:Accessing EPL and EVL intermediate models
Goto Forum:
  


Current Time: Sun Jan 21 13:00:58 GMT 2018

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

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