aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Question about Sequence Diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Question about Sequence Diagram" Watch "Question about Sequence Diagram" New topic
Author

Question about Sequence Diagram

Fernanda Silva
Greenhorn

Joined: Aug 15, 2003
Posts: 23
HI, I have a Doubt about Sequence Diagram.
Imagine this 2 objetcts, that pertence Sequence Diagram below.

ObjA ObjB
event ----------------> * --------methodX()---------> *
* *
* *
* *
* *
* *

The methodX() is a message.

The question is: The methodX() is a method of ObjA or ObjB ?

Class ObjA{
...
ObjB objB = new ObjB();
objB.methodX();
...
}


or

Class ObjB{
...
ObjA objA = new ObjA();
objA.methodX();
...
}
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
The sequence diagram should show the actual runtime object. It is unclear from your explanation what the runtime instance type is.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Fernanda Silva
Greenhorn

Joined: Aug 15, 2003
Posts: 23
I think that this diagram is better (see http://www.zanthan.com/itymbi/archives/000596.html
The doubt is: The method nextId() is of object Comment or IDGen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about Sequence Diagram