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 15:06
Edin - is currently offline Edin -
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 15: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: Sun Apr 20 09:27:36 EDT 2014

Powered by FUDForum. Page generated in 0.02370 seconds