First, time series diagram
The time series diagram is an interaction diagram that emphasizes the chronological order, in which the objects participating in the interaction are first placed above the graph and arranged along the x-axis. Usually the object that initiates the interaction is placed on the left, the lower object is placed on the right, and then the messages sent and received by these objects are placed in chronological order from top to bottom in the y-axis direction. This provides a clear visual trajectory of the control flow over time.
Second, time series diagram elements
1. Role
System roles, which can be human, and even other systems or subsystems
2. Objects
The object consists of three naming methods:
The first method includes the object name and the class name;
The second method only shows that the class name does not display the object name, which means that he is an anonymous object;
The third way to display only object names does not show class.
3. Lifeline
A lifeline is represented in a sequence diagram as a dashed line extending downward from the object's icon, indicating when the object exists, such as
4. Control focus
The control focus is the symbol representing the time period in the sequence diagram, during which the object will perform the appropriate action. Represented by a small rectangle
5. Message
Messages are generally divided into synchronous messages (synchronous message), asynchronous messages (asynchronous message), and return messages. As shown in:
Synchronous message = Call message (Synchronous msg)
The sender of the message passes control to the recipient of the message, and then stops the activity, waiting for the recipient of the message to discard or return control. Used to indicate the meaning of synchronization.
Asynchronous messages (asynchronous message)
The message sender passes the message to the recipient of the message, and then resumes its activity without waiting for the recipient to return the message or control. The recipient and sender of an asynchronous message are working concurrently.
Return message
Returns a message that represents a return from a procedure call
6. Self-correlating messages
Represents the method's own invocation and one method within an object calls another method
7. Timing diagram Example:
8, time series diagram and collaboration diagram can be converted to each other, as long as the F5 can be easily converted.
Original: http://blog.csdn.net/ggibenben1314/article/details/8572431
Central control sequence diagram
Distribution Control sequence diagram
Example: [self-invocation, invocation, creation, destruction, self-destruct, synchronous, asynchronous message]
Loops and Conditions: [Loop, Alt, OPT, guard alert]
Original: http://blog.csdn.net/tanxiang21/article/details/8222188
Reference: http://www.cnblogs.com/langtianya/p/3825764.html
UML Modeling Timing Diagram (Sequence Diagram)