Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Enumeration question and translation issue
Enumeration question and translation issue [message #1003767] Tue, 22 January 2013 00:29 Go to next message
Jae Hee Lee is currently offline Jae Hee LeeFriend
Messages: 2
Registered: January 2013
Junior Member
Hi, I am glad that I was able to log on to this forum.

My current work involves translating XML file into EMF file.

My first question: enumeration

In my xml file there is

<componentType id="">

<componentKind> software | hardware </componentKind>


In this case, this means that I have to use enumeration... so what I have done is

I declared cKind enum as

enum Ckind{



Is this a valid way of specifying enumeration type?

Second question...

I have a thing called domain, which has to put component and its affixed things (port etc.) into the domain. We find specific component instance by looking at its ID. So what I have done is:

@gmf.node(label="name", border.width="5")
class ComponentType{

attr int ID;
attr String name;
attr String desc;
attr Ckind componentKind;

val InterfaceInstance[*] interfaceInstances;


class ComponentInstance{

attr int ID;
attr Trust trust;
attr String name;
attr String desc;

ref ComponentType componentTypeLink;
//The interface instance that are same as interface instance that its type has
ref ComponentType#interfaceInstances interfaceTypeLink;

You can see that ComponentInstance has ID.

So the domain somehow has to include some specific componentInstance or all of the componentInstance drawn on the diagram.

I think using compartment would work in this case. But I would like to know some other ways I might do this (referring to specific attributes etc.)

Thank you!

Re: Enumeration question and translation issue [message #1004210 is a reply to message #1003767] Tue, 22 January 2013 20:08 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1234
Registered: July 2009
Senior Member
Duplicate of
Previous Topic:Sync EVL validation result with text editor
Next Topic:Enumeration question and translation issue
Goto Forum:

Current Time: Sun Oct 23 09:59:03 GMT 2016

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

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