UML Modeling Timing Diagram (Sequence Diagram)

Source: Internet
Author: User
Tags dashed line
Introduction of Timing Diagram (Brief introduction) time series diagrams (Sequence Diagram) are graphs that display the interaction between objects, which are arranged chronologically. The sequence diagram shows the sequence of message interactions between the objects participating in the interaction and their objects. The modeling elements included in the time series diagram are: Object (Actor), Lifeline (Lifeline), control focus (focus on control), messages (message), and so on. second, time series diagram elements (Sequence Diagram Elements)   role (actor) system roles, which can be people, and even other systems or subsystems.   objects (object) 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, that is, he is an anonymous object, and the third way shows only the object name does not show the class.   Lifeline (Lifeline) a lifeline is represented in a sequence diagram as a dashed line extending downward from the object's icon, indicating the time at which the object existed, as shown in Control Focus ( focus on control) 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, as shown below.   messages (message) messages are generally divided into synchronous messages (synchronous message), asynchronous messages (asynchronous message), and return messages. As shown in the following figure: Synchronous message = Call Message ( Synchronous message) the sender passes control to the recipient of the message, then stops the activity, waits for the message's receiver to discard or return control. Used to indicate the meaning of synchronization. Asynchronous messages (asynchronous message) a message sender passes a 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 self-correlating message (self-message) represents the method's own invocation and one method within an object that calls another method.   Combined Fragments øalternative fragment (denoted "alt") corresponds to If...then...else øoption fragment (denoted "opt") and Switch corresponding to the Øparallel fragment (denoted "par") means that Øloop fragment (denoted "Loop") occurs simultaneously with the for or Foreach corresponding third, the time series diagram example analysis (sequece Diagram Example analyses)   sequence Diagram Scenarios Complete the course creation function, the main process is: 1, request to add the course page, fill out the curriculum, click the "Create" button 2, add course information to the database 3, append the subject information to the course Object 4, assign a teacher 5 for the course, complete the course creation function Timing Diagram Examples

    sequence diagram Instance analysis 1, ordinal 1.0-1.3  completion page Initialization 2, ordinal 1.4-1.5& nbsp Course Manager fills Curriculum List 3, ordinal 1.6-1.7  course Administrator click the "Create" button and respond to click event 4, Sequence number 1.8     service level create course 5, serial number 1.9-1.10 Add course to database and return to course number CourseID 6, serial number 1.11-1.12 Add course topic to database, and return topic number TopicID 7, ordinal 1.13      & nbsp;  assigning a teacher to a course 8, serial number 1.14         to the interface to create a message that the course succeeds or not iv. Summary (Summary)        time series diagrams (Sequence Diagram) are graphs that display the interaction between objects, which are arranged in chronological order. The sequence diagram shows the sequence of message interactions between the objects participating in the interaction and their objects. The modeling elements included in the time series diagram are: Object (Actor), Lifeline (Lifeline), control focus (focus on control), messages (message), and so on. Finally, an example of a timing diagram is shown in the course creation function.   Reprint: http://smartlife.blog.51cto.com/1146871/284874

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.