Skip to main content


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 chaiFriend
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 MerksFriend
Messages: 33141
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 .


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Link to local project folder?
Next Topic:Eclipse causes Windows taskbar to malfunction
Goto Forum:
  


Current Time: Fri Apr 26 01:35:26 GMT 2024

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

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

Back to the top