Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EuGENia] attribute declarations with multiplicity expressions
[EuGENia] attribute declarations with multiplicity expressions [message #591103] Wed, 04 August 2010 10:01 Go to next message
Syed Imran is currently offline Syed ImranFriend
Messages: 25
Registered: January 2010
Location: Cork, Ireland
Junior Member
Hi All,

I am looking for some example in Eugenia about attribute declarations with multiplicity expressions.
For example

class workshop {
attr String[0..10] student;
attr String[*] participant;
}

I have a workshop model in which I want to specify students with their names as attributes. I do not want to specify it like.

val student [*] student.
Re: [EuGENia] attribute declarations with multiplicity expressions [message #591120 is a reply to message #591103] Wed, 04 August 2010 13:41 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Syed,

Would it be feasible to use a compartment for the students? Something like the following code:


@gmf.node(foo="bar")
class Workshop {
@gmf.compartment(layout="list")
val Student[*] students
}

@gmf.node(label="name")
class Student {
attr String name;
}

This will allow Student nodes to be placed inside Workshops.

If this is not feasible, then it might be best to post the question on the GMF forums. Once you have a GMF editor that you're satisfied with, we may be able to extract a further annotation for EuGENia...

Cheers,
Louis.
Previous Topic:[EVL] Question about the HasName constraint in the filesystemExample.
Next Topic:[Eugenia] Palette Icons and Iterative Development Process
Goto Forum:
  


Current Time: Thu Apr 25 07:12:27 GMT 2024

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

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

Back to the top