<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=OCUP2F_07_Sequence_Diagram</id>
	<title>OCUP2F 07 Sequence Diagram - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=OCUP2F_07_Sequence_Diagram"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=OCUP2F_07_Sequence_Diagram&amp;action=history"/>
	<updated>2026-04-19T15:06:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=OCUP2F_07_Sequence_Diagram&amp;diff=82344&amp;oldid=prev</id>
		<title>Ivasiletc at 10:12, 28 April 2021</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=OCUP2F_07_Sequence_Diagram&amp;diff=82344&amp;oldid=prev"/>
		<updated>2021-04-28T10:12:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Private]]&lt;br /&gt;
[[Category:OCUP2]]&lt;br /&gt;
==Module 7. Sequence Diagram⌘==&lt;br /&gt;
===Interaction⌘===&lt;br /&gt;
* Interactions are units of behavior of an enclosing Classifier. &lt;br /&gt;
* Interactions focus on the passing of information with Messages between the Connectable Elements of the Classifier.&lt;br /&gt;
* 4 interaction diagrams in UML 2.5:&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Sequence diagrams&amp;#039;&amp;#039;&amp;#039; - sequence in which messages are exchanged &lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Communication diagrams&amp;#039;&amp;#039;&amp;#039; - relationship between the participants&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Timing diagrams&amp;#039;&amp;#039;&amp;#039; - state changes of the participants relative to the time&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Interaction overview diagrams&amp;#039;&amp;#039;&amp;#039; - order of interactions in an activity-like notation&lt;br /&gt;
&lt;br /&gt;
===Sequence Diagram⌘===&lt;br /&gt;
[[File:SimpleSequenceDiagram.png]]&lt;br /&gt;
* Participants are represented by lifeline - a rectangle and a dashed line&lt;br /&gt;
* Messages are represented by arrows between lifelines&lt;br /&gt;
* Lifeline describes the time-line for a process, where time increases down the page&lt;br /&gt;
* The entire diagram represents one interaction&lt;br /&gt;
====Connectable Element⌘====&lt;br /&gt;
[[File:Lifeline.png]]&lt;br /&gt;
&lt;br /&gt;
Connectable Element&lt;br /&gt;
* a set of instances&lt;br /&gt;
* can be considered as objects of the specified type&lt;br /&gt;
* lifelines (participants) represent connectable elements (properties)&lt;br /&gt;
* If the referenced part has a multiplicity &amp;gt; 1, then the lifeline may have selector that specifies which particular part is represented by this lifeline&lt;br /&gt;
&lt;br /&gt;
====Occurrence Specification ⌘====&lt;br /&gt;
[[File:ClipCapIt-141201-153100.PNG]]&lt;br /&gt;
* Occurrence Specification represents a moment in time at the beginning or end of a message or at the beginning or end of an execution.&lt;br /&gt;
* The semantics of an Interaction is given as a trace (a sequence of event occurrences).&lt;br /&gt;
&lt;br /&gt;
====Execution Specification ⌘====&lt;br /&gt;
[[File:ExecutionSpecification.png]]&lt;br /&gt;
* Specification of the execution of a unit of behavior within the lifeline.&lt;br /&gt;
* Sending and receiving messages determine start and end of execution specification.&lt;br /&gt;
&lt;br /&gt;
====Message⌘====&lt;br /&gt;
[[File:SequenceDiagramMessage.png]]&lt;br /&gt;
&lt;br /&gt;
===Message Types⌘===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Synchronous message&amp;#039;&amp;#039;&amp;#039; (filled arrowhead):&lt;br /&gt;
** caller waits until called behavior terminates&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;reply message&amp;#039;&amp;#039;&amp;#039; is represented by dashed line with either an open or filled arrow head&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Asynchronous message&amp;#039;&amp;#039;&amp;#039; (open arrowhead):&lt;br /&gt;
** caller doesn&amp;#039;t wait but continues after call, no reply&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Found message&amp;#039;&amp;#039;&amp;#039; (open arrowhead originating from a filled circle):&lt;br /&gt;
** receiver known, sender not known&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Lost message&amp;#039;&amp;#039;&amp;#039; (open arrowhead pointing to a filled circle)&lt;br /&gt;
** sender known, receiver not known&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Create message&amp;#039;&amp;#039;&amp;#039; (dashed line with open arrowhead pointing to header of lifeline):&lt;br /&gt;
** new lifeline is created at this point in the diagram&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Delete message&amp;#039;&amp;#039;&amp;#039; (open arrowhead):&lt;br /&gt;
** object destruction, stop (destruction of an object is represented by a cross on the lifeline)&lt;br /&gt;
&lt;br /&gt;
====Event Occurrences⌘====&lt;br /&gt;
[[File:SequenceEventOcc.png]]&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Sequence of event occurrences&amp;#039;&amp;#039;&amp;#039; (trace) is defined by &amp;#039;&amp;#039;&amp;#039;&amp;lt;eventoccurrence1, eventoccurrence2, ...,eventoccurrence-n&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* send event is denoted by an exclamation mark (&amp;#039;&amp;#039;&amp;#039;!p&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
* receive event is denoted by question mark (&amp;#039;&amp;#039;&amp;#039;?p&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
* A valid sequence for the interaction: &amp;#039;&amp;#039;&amp;#039;&amp;lt; !p, ?p, !q, ?q &amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;It&amp;#039;s not the only valid sequence!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
====Event Occurrences valid trace⌘====&lt;br /&gt;
[[File:SequenceEventOcc2.png]]&lt;br /&gt;
&lt;br /&gt;
====Event Occurrences Rule⌘====&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Send&amp;#039;&amp;#039;&amp;#039; event &amp;#039;&amp;#039;&amp;#039;before receive &amp;#039;&amp;#039;&amp;#039;event&lt;br /&gt;
* The order of events along one lifeline is &amp;#039;&amp;#039;&amp;#039;relevant&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
* The position of one event relative to an event on another lifeline is &amp;#039;&amp;#039;&amp;#039;insignificant&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ivasiletc</name></author>
	</entry>
</feed>