Close

Site Cloud

Login | Sitemap
Welcome, Guest
Please Login or Register.    Lost Password?

Heart-Brain relationship in UML
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Heart-Brain relationship in UML
#140
Heart-Brain relationship in UML 2 Years, 9 Months ago Karma: 3
Hi

The heart dies when the brain dies and vice-versa.
So, I was wondering if we represent such a mutually composite relationship by 2 filled diamond arrows at both ends in the class boxes ? .

regards
Shashank
Dixit
Student
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Location: Bangalore
Last Edit: 2009/05/04 06:29 By Dixit.
The administrator has disabled public write access.
I dont want to be right. I just want to know whether I am right
Albert Einstein
 
#144
Re:Heart-Brain relationship in UML 2 Years, 9 Months ago Karma: 1
I think the direction wont be necessary as both are in need of each other. Only the filled diamonds(composite aggregation) will be required i guess!!!!!
praju
Student
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#147
Re:Heart-Brain relationship in UML 2 Years, 9 Months ago Karma: 5
The Heart does not contain the brain and visa versa so the relationship between them is not composite aggregation.

The body contains both the heart and the mind. Sometimes in programming we have to over-simplify reality. When faced with such a scenario, we need to introduce another object, global to both. Or, some kind of messaging system, which would make them dependent(see below).

They have a dependency on one another though.

So a dotted line between them would suffice.
Manuj
Administrator
Posts: 76
graph
User Offline Click here to see the profile of this user
Gender: Male Location: Bangalore Birthday: 07/04
The administrator has disabled public write access.
"There is a principle which is a bar against all information, which is a proof against all argument, and which cannot fail to keep a man in everlasting ignorance - that principle is condemnation before investigation." - Herbert Spencer
 
#152
Re:Heart-Brain relationship in UML 2 Years, 9 Months ago Karma: 3
Thank you sir..that clears it up nicely !
Dixit
Student
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Location: Bangalore
The administrator has disabled public write access.
I dont want to be right. I just want to know whether I am right
Albert Einstein
 
Go to topPage: 1
Moderators: Manuj,
get the latest posts directly to your desktop

Latest Events

Contact Information

Information (General Information) KODE|academy, II Floor, K R Towers, 100 Feet Ring Road, BTM Layout, Ist Stage Bangalore, Karnataka 560068 India (080)41501410 or 41276688 Mobile: 9741500215