Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Attaching analysis code
Attaching analysis code [message #78645] Fri, 17 November 2006 19:54 Go to next message
drp3pp3p is currently offline drp3pp3pFriend
Messages: 4
Registered: July 2009
Junior Member
I would like to create a modeling tool in GMF and include some
analysis functionality with that tool. Basically I want a modeler
to be able to select a model element from a model and run a tool
that traverses the model starting with that model element. For
example, a single analysis might be how many model elements are
reachable downstream in four steps. Slightly more complex analyses
might look at weightings, filter by kinds of links, etc.

How should I write that analysis code? Is there a way in GMF or EMF
to write code that gives me the items that a particular model
element links to? Can I call back to the diagram to (for example)
change color of model elements?

Dave
Re: Attaching analysis code [message #78803 is a reply to message #78645] Mon, 20 November 2006 11:39 Go to previous message
Radomil Dvorak is currently offline Radomil DvorakFriend
Messages: 249
Registered: July 2009
Senior Member
Hi Dave,

There is a basic support for writing analysis code.
See http://wiki.eclipse.org/index.php/GMF_Constraints#Metrics

In the current implementation, 'Metrics' action is executed from the
diagram root down the
hierarchy. At the moment, any element selection is not supported.

Regards,
/Radek


On Fri, 17 Nov 2006 20:54:40 +0100, Dave Bridgeland <bridgeland@yahoo.com>
wrote:

> I would like to create a modeling tool in GMF and include some
> analysis functionality with that tool. Basically I want a modeler
> to be able to select a model element from a model and run a tool
> that traverses the model starting with that model element. For example,
> a single analysis might be how many model elements are
> reachable downstream in four steps. Slightly more complex analyses
> might look at weightings, filter by kinds of links, etc.
>
> How should I write that analysis code? Is there a way in GMF or EMF
> to write code that gives me the items that a particular model element
> links to? Can I call back to the diagram to (for example)
> change color of model elements?
>
> Dave
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:Semantic v Notation Model
Next Topic:Access to figures through domain model elements
Goto Forum:
  


Current Time: Wed Jan 15 05:09:07 GMT 2025

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

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

Back to the top