About Links [message #173923] |
Sat, 23 February 2008 15:28 |
Kamesh Sampath 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03309 seconds