Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » implement constaints
implement constaints [message #198214] Tue, 22 July 2008 03:09 Go to next message
Eclipse UserFriend
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 03: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 06:09 Go to previous messageGo to next message
Eclipse UserFriend
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 10: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 03:18 Go to previous message
Eclipse UserFriend
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: Sun Jun 08 13:26:59 EDT 2025

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

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

Back to the top