Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Invalid results while using minus operator in ATL
Invalid results while using minus operator in ATL [message #780894] Thu, 19 January 2012 20:06
Edin - is currently offline Edin -Friend
Messages: 7
Registered: January 2012
Junior Member
I have the following helper defined

helper def : prevc : TupleType(x:Real, y:Real) = Tuple{x=0.0, y=0.0};

but when I want to use it in a rule in combination with the input variable

c : MM1!Coordinate

then I see (in the autocompletion dialog) that the type of prevc.x and prevc.y is OclAny, while the type of c.x and c.y is Real.

Now I don't know whether this causes the problem, but I just cant use the minus or plus operator in combination with these two variables. So doing c.x-prevc.x results every time in 0.0, but when I use for example c.x+c.x or prevc.x+prevc.x then it works.

Does anyone has any ideas? I'm busy with this problem for hours.

[Updated on: Thu, 19 January 2012 20:10]

Report message to a moderator

Previous Topic:MicrosoftExcelInjector example error
Next Topic:[ATL] __xmiID__ values on output elements change after executing the transformation
Goto Forum:

Current Time: Tue Feb 27 12:27:17 GMT 2024

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

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

Back to the top