• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UML Question

 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On a class diagram, a dashed line with an open triangle represents:
A. association
B. generalization
C. Refinement
D. dependency
E. composition
Is it refinement?
What is refinement?
thanks,
Ramdhan YK
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a dependency. This is also called a realization such as an interface.
An association would be represented as a dashed line in a class diagram conceptual perspective.
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Todd,
In java architect exam sample questions, they have given answer as refinement and thats the reason why i started wondering what is this refinement?
do you have any idea?
thanks,
Ramdhan YK
 
Todd Newbold
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Off of the top of my head I have not heard of refinement regarding UML.
TODD
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Me too!
 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is indeed a Refinement. It is represented by open triangle i.e. <---------
From Rational docs:
"A refine relationship is a stereotyped relationship that connects two or more model elements at different semantic levels or development stages. It represents a fuller specification of something that that has already been specified at a certain level of detail."
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Allan,
Then how is dependency shown? I beleive that <------- represents dependency.
Can you please let me know what is the differrence between dependency and refinement.
thanks,
Ramdhan YK
 
Allan Moster
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ramdhan,
Extend, Include, and Refine are all "stereotyped" dependencies that's why they use the same open triangle symbol.
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If they are dtereotyped dependies, then the non-stereotyped should be addressed as 'dependency' instead of 'refinement' and for the above question the answer must be dependency, b'cos they never say whether its stereotyped or not.
thanks,
Ramdhan YK
 
Allan Moster
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The answer can be C or D since both use the same open triangle (or arrowhead) symbol. I must say though that the question is rather vague.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On a class diagram, a dashed line with an open triangle represents:
A. association = ______________ (solid line)
B. generalization = ______________|> (solid line w/ empty tri)
C. Refinement = ???
D. dependency = ---------------> (dotted line w/ open tri)
E. composition = _______________<> (solid line w/ filled diamond
My answer would be: D - Dependency.
------------------
=====
ITGal
=====
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi IT Gal,
You gotta change your name first according to Javaranch Naming Conventions.
Secondly, you must have read all the above posts, Allan says
Refinement is a "STEREOTYPED" dependency.
soem thing like
<<refinement>>
<-------------------
Ramdhan YK
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic