File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UML sequence diagram

 
Edward Chen
Ranch Hand
Posts: 798
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from the attached UML sequence diagram, what class / method / business logic you will implement ?

Thanks
Screen Shot 2013-06-24 at 8.02.03 PM.png
[Thumbnail for Screen Shot 2013-06-24 at 8.02.03 PM.png]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33691
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand what you are asking. Is there some context to this question?
 
Edward Chen
Ranch Hand
Posts: 798
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to UML sequence diagram, I want to make some implementation based on this diagram. Here is my try, please correct me if anything is wrong.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33691
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh! Now I understand the question.

Your code is close. Two changes:
obj1.create(); // name should match diagram
startObject.getAttribute(); // call is on startObject because that's where the arrow starts

Creating object 1 and get attribute both go from the first line. They should be from the same object. Which is the sender at left. This page demonstrates it wll.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic