I. Introduction to the time sequence diagram (Brief Introduction)
Create a sequence chart:
II
Design -- Right-click --- add digoal -- seque
Sequence dimo-elements)
Role)
Object)
Lifeline)
Focus of control)
Message)
Self-message)
Combined fragments
Iii. sequece dimo-example Analysis)
Sequence Chart scenario
Sequence Chart instance
Sequence Graph instance analysis
4. Summary)
Sequence digraphs are graphs that show interactions between objects. These objects are arranged in chronological order. The sequence diagram shows the order of message interaction between the objects involved in the interaction and their objects. The Modeling Elements in the sequence diagram mainly include: Object (actor), lifeline (Lifeline), and focus
Of control), message, and so on.
System roles can be people, and other systems or subsystems.
There are three naming methods for objects:
The first method includes the Object Name and class name;
In the second method, only the class name is displayed and the object name is not displayed, indicating that the class name is an anonymous object;
In the third method, only the object name is displayed, but the class name is not displayed.
In the sequence diagram, the lifeline represents a dotted line extending down from the object icon, indicating the time when the object exists, as shown in
The control focus is the symbol indicating the time period in the sequence diagram. During this time period, the object will perform corresponding operations. It is represented by a small rectangle, such.
Messages are generally divided into synchronous Message, asynchronous message, and return message, as shown in:
Synchronous Message = call message (synchronous Message)
The message sender sends the control to the receiver of the message, stops the activity, and waits for the receiver to give up or return the control. Used to indicate the meaning of synchronization.
Asynchronous Message)
The message sender transmits the signal to the receiver of the message, and then continues the activity without waiting for the receiver to return the message or control the message. The receiver and sender of asynchronous messages work concurrently.
Return message)
The returned message indicates that the process call returns
Indicates the call of the method itself and one method in an object to call another method.
Ø alternative fragment (denoted "ALT") and if... Then... Else
Ø option fragment (denoted "opt ")
Corresponds to the switch
Ø parallel fragment (denoted "par ")
Indicates that
Ø loop fragment (denoted "loop ")
Corresponds to for or foreach
The course creation function is completed in the following steps:
1. On the Add course page, enter the course form and click Create.
2. Add course information to the database
3. append topic information to the course object
4. Assign teachers to the course
5. Complete the course creation Function