UML It Time series diagram

Source: Internet
Author: User
Tags dashed line

In This article, we focus on UML time series diagrams, which include modeling elements in the main sequence diagram: Objects (Actor), lifelines (Lifeline), Focus control (Focusofcontrol), messages (message), and so on.

        First, the UML sequence diagram Brief introduction (Briefintroduction)time series diagrams (Sequencediagram) are graphs that display the interaction between objects, which are arranged in chronological order. The sequence diagram shows the order in which the messages interact with the interacting objects and their objects. The modeling elements included in the time series diagram are: Objects (Actor), lifelines (Lifeline), control focus (Focusofcontrol), messages (message), and so on.
ii. UML Sequence diagram elements (sequencediagramelements)Role (actor)
System roles, which can be human, and even other systems or subsystems.
Objects (object)
The object contains three naming methods: The first method contains the object name and the class name, and the second method simply shows that the class name does not display the object name, which means that he is an anonymous object. The third way to show 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, such as
Control Focus (Focusofcontrol)
The control focus is the symbol representing the time period in the sequence diagram, during which the object will run the corresponding action. Represented by a small rectangle, for example.


Messages (Message)

Messages in UML time series diagrams are generally divided into synchronous messages (Synchronousmessage), asynchronous messages (Asynchronousmessage), and return messages (ReturnMessage). For example, as seen in:


Synchronous message = Call message (synchronousmessage)
The sender of the message passes control to the recipient of the message. Then stop the activity. Waits for the recipient of the message to discard or return control. Used to indicate the meaning of synchronization.
Asynchronous Message (Asynchronousmessage)
The message sender passes the message to the recipient of the message. Then go on with your own activities. Do not wait for the recipient to return messages or control.

The recipient and sender of an asynchronous message are working concurrently.


Return Message (ReturnMessage)
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.
third, UML sequence diagram example analysis (sequecediagramexampleanalysis)       uml sequence diagram scene
        Finish the course creation function. The main processes are:
       1, request to join the course page, fill out the curriculum form, click "Create" button
       2, join the course information to the database
       3, appending subject information to course objects
       4, assigning teachers to courses
       5, Complete the course creation function
       UML sequence diagram instance
 
       UML Sequence diagram example analysis
       1, ordinal 1.0-1.3 Complete page initialization
       2, Ordinal 1.4-1.5 Course Administrator fills the curriculum list
       3, serial number 1.6-1.7 the course administrator clicks the "Create" button. and respond to click events
       4, sequence 1.8Service to create a course
       5, Serial number 1.9-1.10 Join the course to the database and return to the course number CourseID
       6, serial number 1.11-1.12 Join the course topic to the database. and return to the topic number TopicID
       7, Sequence number 1.13 To assign a teacher to the course
       8, sequence 1.14 to the interface to create a course success or not message
Iv. Summary (Summary)UML Time series diagrams (Sequencediagram) are graphs that display the interaction between objects, which are arranged in chronological order.

The sequence diagram shows the order in which the messages interact with the interacting objects and their objects. The modeling elements included in the time series diagram are: Object (Actor), Lifeline (Lifeline), control focus (Focusofcontrol), message, and so on.


Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

UML It Time series diagram

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.