• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Class diagram and Sequence Diagram -- Connection  RSS feed

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it necessary to have a class defined in the Class diagram to use its instance in the sequence diagram? I believe that some tools enforce this but I don't believe that this is an UML constraint.
In my opinion, Class diagrams have to give the developer a good idea about the entities and the relationships between them. Showing all the specialized classes such as the DAOs, helpers,etc, would only clutter the class diagram and it would be a good idea to show them in the sequence diagram.
Any comments on this? Also, can anyone confirm if this constraint is not UML based but a tool-specific one?
thanks in advance!
Sridhar
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
welcome to forum...Nopes..its not a UML constraint..For seq diag, they just say u to put a colon( in front.. in case u want to show classes in seq diag. If u havent put any colon, assumption is that it is an object..corresponding class may or may not be shown in class diag...
I agree with ur second point.
 
Sridhar Raman
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Nishant.
I suppose that a smiley would work just as well in the place of the colon : - )
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!