Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » About Links
About Links [message #173923] Sat, 23 February 2008 15:28 Go to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
Hi,

I have a very fundemental Question on Links Definiton,

Say I have a model,

Country
name:String
capital:City (1-1 non-containment reference)
States:State (1-* containment reference)

State
name:String
cities:(1-* reference containment reference)

City
name:String
streets:Street (1-* contaiment reference)

Street
name:String

When I am modeling the this using the GMF , I am trying to map the
containment references as Links , in doing so i am having the issue,

* In the Diagram - the state can be laid over only on top of country canvas,
similarly the cities can be laid over only on state canvas , i mitigated
this using the Diagram Partitioning - for States, but when i am desiging the
State Partition Editor I want the City - the containment reference as Link *
and Street of City - the containment reference as Link ( Am not using
Diagram Partioning for City again - as that makes it more complicated as
more diagrams will be involved to depict the relation)*

My Question :
- Will I require to refine my model to have classes to depict the links ?
Like RelationShip class in the mindmap example ?
- In the Diagram Partitioning - for States how will i map the Street as
Containment Link with City ? since I can directly place the Street under the
state , even if
i try remodelling my State to hold the streets - it voilates the
normilization as Street is not the direct child of State

Can anyone let me know to come out of the issue ?

-Kamesh
Re: About Links [message #175187 is a reply to message #173923] Mon, 03 March 2008 17:30 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Kamesh,

I you can visualize containment references between City and Street as a links
using on the State diagram. See http://www.eclipse.org/gmf/new/gmf-new-1.0M5.php,
"Containment References". We call this feature "phantom nodes".

-----------------
Alex Shatalin
Previous Topic:gmftool problem
Next Topic:Creating a connection programatically or via core properties
Goto Forum:
  


Current Time: Sat Apr 27 02:41:59 GMT 2024

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

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

Back to the top