Modeling methods calls
hi, I'm really trying hard to getting into modeling my applications before coding. So far I've found it to be very useful, especially class diagrams and sequence diagrams.
However, sometimes I find that after a long day of coding I begin to get lost inbetween method calls within the same class. Now I understand that sequence diagrams illustrate method calls and information passing between class and their methods, but is there a standard diagram methodology for illustrating method calls all within the same class? At the moment I'm just using DFDs.
Thanks for you help :o)
The four behavioural diagrams in UML are:
Sequence Diagrams
Collaboration Diagrams
Statechart Diagrams
Activity Diagrams
Collaboration diagrams are a transformation of sequence diagrams to a decorated spoke representation.
Both sequence and collaboration diagrams represent a single flow of control through a system.
Activity diagrams can represent different paths and synchronisation between actors.
Statechart Diagrams are the only diagram UML provides for messages internal to an instance (multiple instances of the same class could use the three other collaborative behaviour diagrams).
See http://www.smartdraw.com/tutorials/software-uml/uml.htm for simple examples.
Pete