Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Refining mode: problems with drop feature
icon5.gif  Refining mode: problems with drop feature [message #1053710] Tue, 07 May 2013 06:55 Go to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
Hi everybody,
I recently started using the refining mode on ATL, I write -- @atlcompiler atl2010 at the start of the compiler, and all my rules right now seemed to work ok.

Then I tried to use the 'drop' feature as follows:

rule Classes2Drop {
	from
		s: UML2!Class (
			 s.getAppliedStereotypes().isEmpty()
		)
	to
		drop
		
}

And there seems to be some kind of error that I don't understand at all, it just says:
Quote:
The object 'org.eclipse.uml2.uml.internal.impl.ClassImpl@110b4ae (name: CreateNewIncidentActionDelegate, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isActive: false)' is not contained in a resource.


So I wondered why this happened and I came up with several questions:
1 - do all the elements contained in these classes get deleted too?
2 - What happenes to the elements that reference these classes, or any other dropped element? is that what causes this error?
3 - what else could be the cause for this error?
I know it says that that element is not contained in a resource, but that doesn't seem to be the cased, also it seems to be an element of the type class, I don't get it.

If I change the code to address a certain stereotype like this:
rule Classes2Drop {
	from
		s: UML2!Class (
			 s.getAppliedStereotype('profile::Perspective').oclIsUndefined()
		)
	to
		drop
		
}

I get exactly the same error.
I didn't find much information online, so I'm completely lost here, I hope you guys can help!

Regards,
Javier
Re: Refining mode: problems with drop feature [message #1053726 is a reply to message #1053710] Tue, 07 May 2013 08:00 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 600
Registered: July 2009
Senior Member
Hello,

Javier García wrote on Tue, 07 May 2013 12:55
Hi everybody,
I recently started using the refining mode on ATL, I write -- @atlcompiler atl2010 at the start of the compiler, and all my rules right now seemed to work ok.

Then I tried to use the 'drop' feature as follows:

rule Classes2Drop {
	from
		s: UML2!Class (
			 s.getAppliedStereotypes().isEmpty()
		)
	to
		drop
		
}

And there seems to be some kind of error that I don't understand at all, it just says:
Quote:
The object 'org.eclipse.uml2.uml.internal.impl.ClassImpl@110b4ae (name: CreateNewIncidentActionDelegate, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isActive: false)' is not contained in a resource.


So I wondered why this happened and I came up with several questions:
1 - do all the elements contained in these classes get deleted too?

Yes, as described in the documentation the "drop" feature is implementing a cascade-delete strategy (only considering containment references of course).

Quote:

2 - What happenes to the elements that reference these classes, or any other dropped element? is that what causes this error?

Such references are then supposedly set to OclUndefined (i.e.; no element).

Quote:

3 - what else could be the cause for this error?

It seems that one Class element is not contained anymore in any other element.
Have you already tried to remove your rule to see if this error actually comes from this specific rule?
Have you taken a look to other rules manipulating Class elements and that may cause the error (in conjunction with this deletion rule)?

Quote:

I know it says that that element is not contained in a resource, but that doesn't seem to be the cased, also it seems to be an element of the type class, I don't get it.

If I change the code to address a certain stereotype like this:
rule Classes2Drop {
	from
		s: UML2!Class (
			 s.getAppliedStereotype('profile::Perspective').oclIsUndefined()
		)
	to
		drop
		
}

I get exactly the same error.
I didn't find much information online, so I'm completely lost here, I hope you guys can help!

Regards,
Javier

Best regards,

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: Refining mode: problems with drop feature [message #1053731 is a reply to message #1053726] Tue, 07 May 2013 08:23 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARD
Messages: 522
Registered: July 2009
Senior Member
Isn't that just a warning ?
Re: Refining mode: problems with drop feature [message #1055657 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
Hi,
Yes, it seems to be a warning as the transformation actually gets done properly (or so it seems) but since it shows up in red I just assumed it was an exception and the transformation wasn't being done.

Hugo, regarding what you said, yes I tested it was that rule the one bringing up the issue, since when I delete it it runs smoothly.

I've been testing more the refining mode and I don't quite understand this warning, as in some cases what I actually want to do is delete the elements that are not contained in a resource (and it does delete said elements) so I don't know if this means that the element is transformed but without a container, which also doesn't seem right since all elements are contained in something.

Anyways, if it's just a warning it's no big deal and I can go on, thank you both!
Re: Refining mode: problems with drop feature [message #1055672 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:33]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1055744 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:32]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1055817 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:32]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1055818 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:32]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1055896 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:32]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1055897 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:32]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1055974 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:32]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1055975 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:32]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056053 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:32]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056054 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:32]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056135 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:32]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056136 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:31]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056220 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:31]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056221 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:31]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056306 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:31]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056307 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:31]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056394 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:30]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056395 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:30]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056486 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:30]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056487 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:30]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056581 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:30]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056582 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:29]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056677 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:29]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056678 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:29]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056773 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:29]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056774 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:28]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056871 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:28]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056872 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:28]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056972 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:28]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1056973 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:28]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057075 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:28]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057076 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:28]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057180 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:28]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057181 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:27]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057284 is a reply to message #1053731] Wed, 08 May 2013 06:50 Go to previous messageGo to next message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:27]

Report message to a moderator

Re: Refining mode: problems with drop feature [message #1057285 is a reply to message #1053731] Wed, 08 May 2013 06:51 Go to previous messageGo to previous message
Javier García is currently offline Javier García
Messages: 129
Registered: April 2013
Senior Member
No Message Body

[Updated on: Thu, 09 May 2013 04:27]

Report message to a moderator

Previous Topic:Generation of theTransformation in a java application
Next Topic:Problem in a helper
Goto Forum:
  


Current Time: Wed Jul 23 16:15:59 EDT 2014

Powered by FUDForum. Page generated in 0.03918 seconds