Invalid results while using minus operator in ATL [message #780894] |
Thu, 19 January 2012 20:06 |
Edin -![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=ed%40eddsn.com) 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
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
|
|
|
Powered by
FUDForum. Page generated in 0.03793 seconds