Activity Diagrams-Object-Oriented Design-Lecture 11 Slides-Computer Engineering, Slides of Object Oriented Analysis and Design

Activity Diagrams, Analysis Workflow, Tokens, Activity Partitions, Action Nodes, Control Nodes, Object Nodes, Pins, Raman Ramsin, Lecture Slides, Object Oriented Design, Department of Computer Engineering, Sharif University of Technology, Iran.

Typology: Slides

2011/2012

Uploaded on 02/19/2012

hester
hester 🇮🇷

4.5

(13)

84 documents

1 / 20

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Department of Computer Engineering 1 Sharif University of Technology
Object-Oriented Design
Lecturer: Raman Ramsin
Lecture 11:
Activity Diagrams Part 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Activity Diagrams-Object-Oriented Design-Lecture 11 Slides-Computer Engineering and more Slides Object Oriented Analysis and Design in PDF only on Docsity!

Department of Computer Engineering

Sharif University of Technology

Object-Oriented Design

Lecturer: Raman Ramsin

Lecture 11 :

Activity Diagrams – Part 1

Department of Computer Engineering

Sharif University of Technology

Analysis Workflow: Analyze a Use Case  The analysis workflow consists of the following activities:  Architectural analysis  Analyze a use caseOutputs:analysis classesuse case realizations  Analyze a class  Analyze a package

Department of Computer Engineering

Sharif University of Technology

Activities  Activities are networks of nodes connected by edges.  Categories of nodes:  action nodes - atomic units of work within the activity;  control nodes - control the flow through the activity;  object nodes - represent objects used in the activity.  Categories of edges:  control flows - represent the flow of control though the activity;  object flows - represent the flow of objects through the activity.  Activities can have preconditions and postconditions.

Department of Computer Engineering

Sharif University of Technology

Activities: Example

Department of Computer Engineering

Sharif University of Technology

Activities: Tokens  Tokens flow around the network and can represent:  the flow of control;  an object;  some data.  Tokens move from a source node to a target node across an edge depending on:  source node postconditions;  edge guard conditions;  target preconditions.

Department of Computer Engineering

Sharif University of Technology

Activity Partitions  Activity partitions - a high-level grouping of related actions.  Partitions form a hierarchy rooted in a dimension.

Department of Computer Engineering

Sharif University of Technology

Action Nodes: Types

Department of Computer Engineering

Sharif University of Technology

Action Nodes: Call  Call action node:  call an activity - use the rake symbol;  call a behavior;  call an operation.

Department of Computer Engineering

Sharif University of Technology

Control Nodes

Department of Computer Engineering

Sharif University of Technology

Control Nodes: Decision and Merge

Department of Computer Engineering

Sharif University of Technology

Object Nodes  Object nodes represent instances of a classifier.  Input and output edges are object flows - represent the movement of objects.  Object node output edges compete for each output token.

Department of Computer Engineering

Sharif University of Technology

Object Nodes: Buffer Semantics  Object nodes act as buffers:  {upperBound= n};  {ordering= FIFO} XOR {ordering= LIFO};  {ordering= FIFO} is the default;  may have a «selection».  Object nodes can represent objects in a particular state.

Department of Computer Engineering

Sharif University of Technology

Pins  A Pin is an object node that represents one input to or output from an action or activity.

Department of Computer Engineering

Sharif University of Technology

Reference  Arlow, J., Neustadt, I., UML 2 and the Unified Process: Practical Object-Oriented Analysis and Design, 2

nd

Ed. Addison-Wesley,