Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How can I make a runtime environment / simulator with gmf?
How can I make a runtime environment / simulator with gmf? [message #163441] Fri, 30 November 2007 13:14 Go to next message
Eclipse UserFriend
Originally posted by: manja.wolf.web.de

Hello,

I want to make a runtime environment for special nets. How can I start
with that in gmf?

I finished the creation of nets with gmf successfully. Now I want to
open in a second editor a simulator, where the user can change states of
his created net.

How can I make such a second editor using gmf? How can I get access to
the created objects like nodes or subgraphes. Are they only stored in
the default.xxx_diagram or default.xxx files?

Can you suggest documentation about it?

Thanks for any help.

Manja Wolf
Re: How can I make a runtime environment / simulator with gmf? [message #163454 is a reply to message #163441] Fri, 30 November 2007 13:31 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Manja,

AFAIU you have to create two GMF-based editors working with the same domain
model, so you can do it and the second editor will get the information saved
using the first one via file system. If you'd like to get this information
without saving the editor then you should sare EditingDomain instance across
these two editors.

-----------------
Alex Shatalin
Re: How can I make a runtime environment / simulator with gmf? [message #163702 is a reply to message #163454] Mon, 03 December 2007 13:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manja.wolf.web.de

Hello Alex,

Thank you for your help.

I'm a total beginner with gmf and so I'm confused how to go on with my
graphical partial solution I have completed. It would be great if you
could give some recommendation how I can start. Therefor I give you some
information about the "thing" (not mathematically correct) I have to create:

With the editor I built with gmf, I create a net which has two kinds of
nodes: places and transitions. Places hold token. Transition initiate an
action if there are enaugh token on preplaces. These action should be
initiated automatically after doubleclicking the transition and then
autoatically something is happen.

So I have to work with information about the nodes in the net and save
states with information about the number of token on places.

What do you mean, is it better to implement this in gmf or should I do
it better in EMF? Finally it is a graphical editor with some
on-click-activities...

I'm totally in the beginning of my troubleshooting and don't know where
to start with my code. Should I write an own package? Or is it better to
write somewhere in the generated code? But if you prefer this where
should I start?

How can I get access to the file, where the created net is saved?

Is there any documentation about something like this?

Thanks a lot for your help.

Regards,
Manja
Re: How can I make a runtime environment / simulator with gmf? [message #163748 is a reply to message #163702] Mon, 03 December 2007 15:08 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Manja,

> What do you mean, is it better to implement this in gmf or should I do
> it better in EMF? Finally it is a graphical editor with some
> on-click-activities...
I think GMF is a proper toolkit for this application.

> I'm totally in the beginning of my troubleshooting and don't know
> where to start with my code. Should I write an own package? Or is it
> better to write somewhere in the generated code? But if you prefer
> this where should I start?
I think you can start with reading tutorials from: http://wiki.eclipse.org/GMF_Documentation.

> How can I get access to the file, where the created net is saved?
Just load corresponding EMF file and get the information using EMF-generated
API.

> Is there any documentation about something like this?
I can suggest you reading EMF book, or EMF documentstion (resource loading
part).

-----------------
Alex Shatalin
Previous Topic:GMF generated code
Next Topic:The link between the nodes simply disappear
Goto Forum:
  


Current Time: Fri Dec 27 02:38:39 GMT 2024

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

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

Back to the top