Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [EVL] Printing collections
[EVL] Printing collections [message #615801] Tue, 29 April 2008 14:19
Andrew Lawson is currently offline Andrew LawsonFriend
Messages: 12
Registered: July 2009
Junior Member
I'm having trouble comparing two collections.

I create the collections by following a reference from the start entity (in
this case named parent) and then following a link named operations and then
collecting together all of the name attributes of the classes.

Is there anyway to print the collections in EVL so that I can see what
collections are being compared?

self.parent.operations->collect(s| s.name)



The relevant parts of the metamodel are:

class Entity {

attr String classname;

attr String instancename;

attr Boolean Child;

val Attribute[+] attribute;

val Operation[*] operations;

val EntityReference[+] reference;

ref Entity[0..1] parent;

}





class Operation{



attr String name;

val Type[*] arguments;

}
Previous Topic:[TCS] Problem with serializer
Next Topic:[EVL] Printing collections
Goto Forum:
  


Current Time: Wed Apr 24 18:46:16 GMT 2024

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

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

Back to the top