











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Use Case Realizations, Analysis Workflow, Combined Fragments, Communication Diagrams, Iteration, Branching, Interaction Occurrences, Raman Ramsin, Lecture Slides, Object Oriented Design, Department of Computer Engineering, Sharif University of Technology, Iran.
Typology: Slides
1 / 19
This page cannot be seen from the preview
Don't miss anything!












Department of Computer Engineering
Department of Computer Engineering
Analysis Workflow: Analyze a Use Case The analysis workflow consists of the following activities: Architectural analysis Analyze a use case Outputs: analysis classes use case realizations Analyze a class Analyze a package
Department of Computer Engineering
Combined Fragments: Operators – opt and alt opt - there is a single operand that executes if the condition is true (like if ... then). alt - the operand whose condition is true is executed.
Department of Computer Engineering
Combined Fragments: Operators – opt and alt
Department of Computer Engineering
Combined Fragments: Operators – loop and break Syntax
Department of Computer Engineering
Combined Fragments: Operators – loop and break Example
Department of Computer Engineering
Communication Diagrams Communication diagrams - emphasize the structural aspects of an interaction: lifelines are connected by links; messages have a sequence number - they are numbered hierarchically according to the nesting of the focus of control.
Department of Computer Engineering
Iteration Iteration - use an iteration specifier (*) and an optional iteration clause on the message. The iteration clause specifies the number of times to loop. You can use natural language, pseudocode, source code, or sequence diagram loop notation for the iteration clause. Iteration over a collection of objects: Denoted by showing the role name and multiplicity (> 1 ) on the target end of the link and prefixing the message with *. The message is sent to each object in turn. Use the parallel iteration specifier *// to indicate that messages are executed in parallel.
Department of Computer Engineering
Branching Branching - prefix messages with guard conditions. The message executes if the guard condition is true. It can be hard to show branching clearly on a communication diagram - for complex branching, use sequence diagrams instead.
Department of Computer Engineering
Interaction Occurrences Interaction occurrences: references to another interaction. The flow of the referenced interaction is included in the flow of the referencing interaction. Parameters - interaction occurrences may have parameters - use normal parameter notation. Gates - inputs and outputs of interactions: a point on the sequence diagram frame that connects a message outside the frame to a message with the same signature inside the frame. Use parameters when you know the source and destination of all messages - use gates when you don't.
Department of Computer Engineering
Interaction Occurrences – Example SDs
Department of Computer Engineering
Interaction Occurrences – Parameters
Department of Computer Engineering
Reference Arlow, J., Neustadt, I., UML 2 and the Unified Process: Practical Object-Oriented Analysis and Design, 2
Ed. Addison-Wesley,