Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] collection assignment
[ATL] collection assignment [message #9172] Thu, 18 January 2007 09:37 Go to next message
Eclipse UserFriend
Originally posted by: ardagoknil.yahoo.com

Hello,
I have a rule and assign a collection. When I try to assing multiple
values like this "hasClass<-Sequence{c3,c4}" and this
"hasClass<-Sequence{c4,c5,c6}", I got a launching error.:

rule RootFolder {
from
pck:Agent!RootM
to
c1:JAVA!Class (
name<- 'Task',
hasClass<-Sequence{c3,c4}
),

c2:JAVA!Class (
name<- 'Behaviour',
hasClass<-Sequence{c4,c5}
),

c3:JAVA!Class (
name<- 'Action',
),

c4:JAVA!Class (
name<- 'ProvisionLink',
),

c5:JAVA!Class (
name<- 'InheritanceLink',
),

}
Re: [ATL] collection assignment [message #10306 is a reply to message #9172] Thu, 18 January 2007 19:57 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

What error do you get?

There seem to be several syntactic errors in your code:
you should not put a coma after the last binding of a target pattern
element (e.g., in c3, c4, and c5) or after the last target element
(e.g., after c5).


Regards,

Frédéric Jouault

Arda Goknil wrote:
> Hello,
> I have a rule and assign a collection. When I try to assing multiple
> values like this "hasClass<-Sequence{c3,c4}" and this
> "hasClass<-Sequence{c4,c5,c6}", I got a launching error.:
>
> rule RootFolder {
> from pck:Agent!RootM
> to
> c1:JAVA!Class (
> name<- 'Task',
> hasClass<-Sequence{c3,c4}
> ),
> c2:JAVA!Class (
> name<- 'Behaviour',
> hasClass<-Sequence{c4,c5}
> ),
> c3:JAVA!Class (
> name<- 'Action',
> ),
> c4:JAVA!Class (
> name<- 'ProvisionLink',
> ),
> c5:JAVA!Class (
> name<- 'InheritanceLink',
> ),
> }
>
Re: [ATL] collection assignment [message #10660 is a reply to message #10306] Fri, 19 January 2007 06:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ardagoknil.yahoo.com

I got launch configuration error. Here is the code without syntactic
errors:

rule RootFolder {
from
pck:Agent!RootM
to
c1:JAVA!Class (
name<- 'Task',
hasClass<-Sequence{c7,c8}
),

c2:JAVA!Class (
name<- 'Behaviour',
superClass<-c1,
hasClass<-Sequence{c4,c5,c6}
),

c3:JAVA!Class (
name<- 'Action',
superClass<-c1
),

c4:JAVA!Class (
name<- 'ProvisionLink',
aggregateClass<-c2
),

c5:JAVA!Class (
name<- 'InheritanceLink',
aggregateClass<-c2
),

c6:JAVA!Class (
name<- 'DisInheritanceLink',
aggregateClass<-c2
),

c7:JAVA!Class (
name<- 'Outcome',
aggregateClass<-c1
),

c8:JAVA!Class (
name<- 'Provision',
aggregateClass<-c1
),

c9:JAVA!Class (
name<- 'ExecuteService',
superClass<-c2
),

c10:JAVA!Class (
name<- 'DiscoverCandidateService',
superClass<-c2
),

c11:JAVA!Class (
name<- 'EnactService',
superClass<-c2
),

c12:JAVA!Class (
name<- 'EngageWithAService',
superClass<-c2
)
}
Re: [ATL] collection assignment [message #10724 is a reply to message #10660] Fri, 19 January 2007 10:47 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

Can you please give us the full text of the error?
If it is in the console, then you can copy and paste it.


Regards,

Frédéric Jouault


Arda Goknil wrote:
> I got launch configuration error. Here is the code without syntactic
> errors:
>
> rule RootFolder {
> from pck:Agent!RootM
> to
> c1:JAVA!Class (
> name<- 'Task',
> hasClass<-Sequence{c7,c8}
> ),
> c2:JAVA!Class (
> name<- 'Behaviour',
> superClass<-c1,
> hasClass<-Sequence{c4,c5,c6}
> ),
> c3:JAVA!Class (
> name<- 'Action',
> superClass<-c1
> ),
> c4:JAVA!Class (
> name<- 'ProvisionLink',
> aggregateClass<-c2
> ),
> c5:JAVA!Class (
> name<- 'InheritanceLink',
> aggregateClass<-c2
> ),
> c6:JAVA!Class (
> name<- 'DisInheritanceLink',
> aggregateClass<-c2
> ),
> c7:JAVA!Class (
> name<- 'Outcome',
> aggregateClass<-c1
> ),
> c8:JAVA!Class (
> name<- 'Provision',
> aggregateClass<-c1
> ),
>
> c9:JAVA!Class (
> name<- 'ExecuteService',
> superClass<-c2
> ),
> c10:JAVA!Class (
> name<- 'DiscoverCandidateService',
> superClass<-c2
> ),
> c11:JAVA!Class (
> name<- 'EnactService',
> superClass<-c2
> ),
> c12:JAVA!Class (
> name<- 'EngageWithAService',
> superClass<-c2
> ) }
>
Re: [ATL] collection assignment [message #10756 is a reply to message #10724] Fri, 19 January 2007 12:22 Go to previous message
Eclipse UserFriend
Originally posted by: ardagoknil.yahoo.com

Hello,
It is not given in the console. I got this error "An internal error
occurred during: Launching"
Previous Topic:[ATL] Does ATL handle long number type ?
Next Topic:Re: constrain a node to be the only root in a graph
Goto Forum:
  


Current Time: Wed May 07 17:05:50 EDT 2025

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

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

Back to the top