You are on page 1of 13

Whats new in UML 2.0?

Presented by Shao-Hung Chen

Overview

Activity Diagram

Grouping

Subactivity Diagram Expansion Region Multi-Dimension Swimlane

Exception

Class Diagram UML 2.0 contributes to 577. References Q&A?

Activity Diagram

Activity becomes Action.


E.g. Scan Video. Activity compose of a sequence of actions.

An activity diagram shows the actions that make up an activity now. Action has local precondition and local postcondition. Action can have multiple incoming flows.

Activity Diagram (Cont)

Action can start as a result of those incoming flows or receiving a signal. New special signal, Time Signal. New form of control flow notation is Flow Final. Final addition is connector.

Grouping

Subactivity Diagram

An action can be decomposed into a sequence of other actions. That means the action is implemented by a subactivity. Input and output parameters can be added to activity diagram by placing the input and output objects on the edge of the activity node.

Grouping (Cont)

Expansion Regions

It has an explicit input that is a collection of values. It is executed once for each element in the input collection. Input and output collections are in same size, value type. Three different execution mode: parallel, iterative and stream.

Grouping (Cont)

Multi-Dimension Swimlanes

It uses activity partitions to solve multi-dimension presentation. Because partitions can be nested, more than two dimensions can be presented.

Exception

Two phases for exception processing: try and catch.

Try block => Protected Node. Catch block => Handler body.

Class Diagram

Attributes can be presented by Compartmentalized Strings or Associations. Attributes are defined with the following syntax to allow this equivalence:

[visibility][/]name[:type][multiplicity][=default][{property-string}] Visibility: (~) Package. Slash (/): Derived attribute.

Class Diagram (Cont)

An open arrow occurs at the end of an association, navigation may occur from the source to the target. If an X appears at the end of the association, navigation may not occur. If both do not occur, it allows navigation in both directions.

UML 2.0 contributes to 577.

Actions of Activity diagram help us break down each activity into more detailed level. Multi-Dimension partitions of Activity Diagram make us to specify that who is taking which actions.

References

[1] Granville Miller. Whats New in UML 2.0? Part one in three part series, 2003. Available at: http://bdn.borland.com/article/0,1410,31881,00.html [2] Bran Selic. Tutorial: An Overview of UML 2.0, 2004. [3] Bran Selic. Tutorial H2: An Overview of UML 2.0, 2003. [4] Morgan Bjorkander and Cris Kobryn. Architecting Systems with UML 2.0. IEEE Computer Security, 2003. [5] Harald Storrle. Semantics of Control-Flow in UML 2.0 Activities, 2004. [6] Harald Storrle. Semantics of Interaction in UML 2.0, 2003. [7] Kendall Scott. Fast Track UML 2.0. Apress, 2004. ISBN:1-5905-93200.

Q & A?

Any questions?

You might also like