Skip to main content



      Home
Home » Modeling » EMF » description of a model in emf
description of a model in emf [message #1706119] Sun, 23 August 2015 13:50 Go to next message
Eclipse UserFriend
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 374 times)
Re: description of a model in emf [message #1706120 is a reply to message #1706119] Sun, 23 August 2015 14:48 Go to previous message
Eclipse UserFriend
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 17:09] by Moderator

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


Current Time: Wed Jul 23 17:24:24 EDT 2025

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

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

Back to the top