Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » implement constaints
implement constaints [message #198214] Tue, 22 July 2008 07:09 Go to next message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
I have one question:
There is one abstract class Obj which have bidirectional relations with
another class Chan.Let's call the relations [Obj]
inputs<----->outgoing[Chan].I want the multipilicity of the relations
varies according to different subclasses of Obj.E.g subclass Net may have
only one outgoing,subclass Gather may have the same number of outgoing as
Rate(int) which is an attribute of Gather.How should I set these
constrictions?Is it available to add constraints in GMF files definitions?


Many thanks!

Ye Liu
Re: implement constaints [message #198222 is a reply to message #198214] Tue, 22 July 2008 07:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lifesting.gmail.com

Ye Liu wrote:
> Hello,
> I have one question: There is one abstract class Obj which have
> bidirectional relations with another class Chan.Let's call the relations
> [Obj] inputs<----->outgoing[Chan].I want the multipilicity of the
> relations varies according to different subclasses of Obj.E.g subclass
> Net may have only one outgoing,subclass Gather may have the same number
> of outgoing as Rate(int) which is an attribute of Gather.How should I
> set these constrictions?Is it available to add constraints in GMF files
> definitions?
>
>
> Many thanks!
>
> Ye Liu
>
you can use OCL, Ecore Editor contains a graceful example to define
constraints for Connections like generalization, association and
aggregation.
Re: implement constaints [message #198259 is a reply to message #198222] Tue, 22 July 2008 10:09 Go to previous messageGo to next message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hi David,
Can you tell me the link of this example?
Re: implement constaints [message #198381 is a reply to message #198259] Tue, 22 July 2008 14:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lifesting.gmail.com

Ye Liu wrote:
> Hi David,
> Can you tell me the link of this example?
>
>
>
>
look at your Plug-ins view, is there a plugin with id
org.eclipse.gmf.ecore.editor? if it exists you can import it as source
project or you need install GMF SDK.
Re: implement constaints [message #198895 is a reply to message #198381] Fri, 25 July 2008 07:18 Go to previous message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
There is such plug-in installed in my Eclipse .Should I download the
example first and then import or check out from the CVS.What is the name
of the example?


Thanks


Ye
Previous Topic:Disable drag resizing when laying out nodes
Next Topic:non-rectangular bound
Goto Forum:
  


Current Time: Sat Jun 06 11:48:03 GMT 2020

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

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

Back to the top