Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » description of a model in emf
description of a model in emf [message #1706119] Sun, 23 August 2015 17:50 Go to next message
Lafleur du versaille is currently offline Lafleur du versailleFriend
Messages: 35
Registered: July 2015
Member
how can I define a model in emf, which describes this example,
index.php/fa/22983/0/

taking into account the nodes und edge

I even tried to see if I could use Adjacency, Matrix Adjacency list or
Inzidenzmatrix, but I do not know how to do it

thank you in advance
  • Attachment: mat.png
    (Size: 11.67KB, Downloaded 328 times)
Re: description of a model in emf [message #1706120 is a reply to message #1706119] Sun, 23 August 2015 18:48 Go to previous message
Yigal Spinner is currently offline Yigal SpinnerFriend
Messages: 127
Registered: July 2009
Senior Member
I do not fully understand the diagram you posted, but basically, a UML model I attached will do the work.
Description
1. TreeNode is the root element that holds all main nodes and materials.
2. Each main node describes the combination of materials. It could have none to N materials with different percent. You can add validation not to pass 100%.
3. Each material can be referenced again in a different node with different percent.

This model basically allow to have a list of all material and each node references from the existing list of material which makes up the node.
It also allows to have separate files for nodes and material and use proxy.
I also attache the ecore file so you can create a simple project.

I hope that helps.

Yigal

[Updated on: Sun, 23 August 2015 21:09]

Report message to a moderator

Previous Topic:Resolving generic types
Next Topic:How to create a non-resolving list
Goto Forum:
  


Current Time: Sat Apr 20 04:07:20 GMT 2024

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

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

Back to the top