OverviewTime series diagrams (Sequence Diagram) describe the chronological order in which messages are routed between objects, which are used to denote the order of behavior in a use case.
The time series diagram contains 4 elements, namely the object (OBJCE), the Lifeline (Lifeline), the message, and the activation (Activation).
Time series diagrams in UML are represented as two-dimensional graphs. Where the longitudinal axis is the timeline, the time is extended along the vertical bar. The horizontal axis represents the individual objects in the collaboration. When an object is present, the lifeline is represented by a dashed line, and the lifeline is a double-lane when the object's process is active. The message is represented by an arrow from the lifeline of one object to another object lifeline.
Composition of time series diagrams1. Objects
The object symbols in a time series diagram are the same as the symbols used for objects in the object graph, using rectangles to enclose the object names and underline the object names. Placing an object at the top of the timing diagram means that the object already exists at the beginning of the interaction, and if the object's position is not at the top, then the object is created during the interaction.
2. Lifeline
Lifelines represent the existence of objects in a sequence diagram over a period of time. is a vertical dashed line.
3. Message
A message defines some form of communication between objects, which is a single communication between objects. Messages can be used to pass parameters between objects, messages can be signals, or they can be called.
The common message symbols in UML are as follows:
The message arrow refers to the party that is the receiver.
4. Activation
The sequence diagram can describe the activation (Activation) and de-activation (deactivation) states of an object. Activation indicates that an object is occupied to complete a task, and to activate means that the object is idle and waiting for a message. The activation state in UML is represented as a rectangle.
creation and revocation of objectsAn object can exist before the interaction begins, or it is created during the interaction. The following illustration shows two ways to create an object:
If you want to undo an object, simply place an "X" symbol at its lifeline termination point, which is usually a response to a delete or cancel message.