Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » ATL error
ATL error [message #685750] Sun, 19 June 2011 08:59 Go to next message
khalil  is currently offline khalil
Messages: 11
Registered: May 2011
Junior Member
I try to use a constraint ocl but I get an error, I would like to know where the problem come
the rule
rule vhdl4{
	from s:bddMetamodel!Constraints(s.con.name->excludes(s.name))
	to o:vhdlamsMetamodele!Contraints(
	name<-s.name)
	
}


the error message

org.eclipse.m2m.atl.engine.emfvm.VMException: Collections do not have properties, use ->collect()
	at __matchvhdl4#9(m2m.atl[124:34-124:44])
		local variables: self=m2m : ASMModule, s=IN!fi-m*g=m*posz
	at __matcher__#23(m2m.atl)
		local variables: self=m2m : ASMModule
	at main#22(m2m.atl)
		local variables: self=m2m : ASMModule

Re: ATL error [message #685798 is a reply to message #685750] Mon, 20 June 2011 07:28 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARD
Messages: 523
Registered: July 2009
Senior Member
I suppose con is a collection so you would use : s.con->collect(e | e.name)->excludes(s.name)
Re: ATL error [message #687826 is a reply to message #685750] Thu, 23 June 2011 10:17 Go to previous message
khalil  is currently offline khalil
Messages: 11
Registered: May 2011
Junior Member
hi

I used collect but it does not work, and when I use the string name 'cell'
s.name example <> 'cell' it work.
there is an association "con" between the two elements of the metamodel.
or i must use an helper for collect the name of the element.
thanks
Previous Topic:[ATL] IllegalArgumentException: Error, when applying a stereotype
Next Topic:[QVTO] Black-box support
Goto Forum:
  


Current Time: Fri Oct 24 12:53:00 GMT 2014

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

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