Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL]: max of floats
[ATL]: max of floats [message #629276] Mon, 27 September 2010 16:14
El Arbi Aboussoror is currently offline El Arbi AboussororFriend
Messages: 90
Registered: June 2010
Member
Hello

I'm trying to apply the max operation on a float :

helper def : getHeightForCube() : Real =
thisModule.allCubes
-> collect(c | c.size)
-> iterate(e; res : Real = thisModule.allCubes.first().size |
(res."max"(e))
);

But no way, and this is the trace :
org.eclipse.m2m.atl.engine.emfvm.VMException: Operation not found: 4.0.max(java.lang.Float)
at getHeightForCube#20(AutoLayout.atl[16:4-16:14])
local variables: self=AutoLayout : ASMModule, res=4.0, e=4.0
at __applylayout_Cube_Z#13(AutoLayout.atl[36:9-36:38])
local variables: self=AutoLayout : ASMModule, link=TransientLink {rule = layout_Cube_Z, sourceElements = {sCu = org.eclipse.emf.ecore.impl.DynamicEObjectImpl@39485e (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1114fc5 (name: Cube) (instanceClassName: null) (abstract: false, interface: false))}, targetElements = {tCu = org.eclipse.emf.ecore.impl.DynamicEObjectImpl@139a6c9 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1b6fcda (name: Element) (instanceClassName: null) (abstract: false, interface: false))}, variables = {}}, sCu=IN!<unnamed>, tCu=refiningTrace!<unnamed>
at __exec__#8(AutoLayout.atl)
local variables: self=AutoLayout : ASMModule, e=TransientLink {rule = layout_Cube_Z, sourceElements = {sCu = org.eclipse.emf.ecore.impl.DynamicEObjectImpl@39485e (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1114fc5 (name: Cube) (instanceClassName: null) (abstract: false, interface: false))}, targetElements = {tCu = org.eclipse.emf.ecore.impl.DynamicEObjectImpl@139a6c9 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1b6fcda (name: Element) (instanceClassName: null) (abstract: false, interface: false))}, variables = {}}
at main#48(AutoLayout.atl)
local variables: self=AutoLayout : ASMModule
Previous Topic:[ATL] how to inject an already deserialized model?
Next Topic:[ATL] convert attribute type error
Goto Forum:
  


Current Time: Mon Jun 24 13:15:11 GMT 2019

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

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

Back to the top