Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » ATL problems
ATL problems [message #1029027] Fri, 29 March 2013 03:30 Go to next message
yesheng chai is currently offline yesheng chai
Messages: 64
Registered: March 2013
Member
: 
  rule PackageableElement
{
	from 
	    s: UML!PackageableElement
	to
	    t1: PetriNets!PetriNet
	    	(
			name <- s.name
	        )
	
}
rule InitialNode
{
	from
	    s:
	      UML!InitialNode
	to
	    t1:
	    	PetriNets!Place
	    	(
			 name <- s.name
	    	 )
}




But my output file :
:   <PetriNet name="model"/>
  <PetriNet name="Activity1"/>
  <PetriNet/>
  <PetriNet/>
  <PetriNet/>
  <PetriNet/>
  <PetriNet/>
  <PetriNet/>
  <Place name="InitialNode1"/>




I want to get the file is:
<PetriNet name="Activity1"/>
<Place name="InitialNode1"/>
Look forward to your reply .
Re: ATL problems [message #1029633 is a reply to message #1029027] Sat, 30 March 2013 00:09 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26086
Registered: July 2009
Senior Member
It's better to ask on the eclipse.atl forum.


On 28/03/2013 11:30 PM, yesheng chai wrote:
> : rule PackageableElement
> {
> from s: UML!PackageableElement
> to
> t1: PetriNets!PetriNet
> (
> name <- s.name
> )
>
> }
> rule InitialNode
> {
> from
> s:
> UML!InitialNode
> to
> t1:
> PetriNets!Place
> (
> name <- s.name
> )
> }
>
>
>
> But my output file :
> : <PetriNet name="model"/>
> <PetriNet name="Activity1"/>
> <PetriNet/>
> <PetriNet/>
> <PetriNet/>
> <PetriNet/>
> <PetriNet/>
> <PetriNet/>
> <Place name="InitialNode1"/>
>
>
>
> I want to get the file is:
> <PetriNet name="Activity1"/>
> <Place name="InitialNode1"/>
> Look forward to your reply .
Previous Topic:Link to local project folder?
Next Topic:Eclipse causes Windows taskbar to malfunction
Goto Forum:
  


Current Time: Tue Sep 30 18:05:58 GMT 2014

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

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